Ini_SetEncoding
- Updated2023-02-21
- 2 minute(s) read
int Ini_SetEncoding (IniText handle, IniFileEncodingType iniFileEncoding);
Purpose
Sets the encoding type for the in-memory object identified by handle. The function must be called before adding any tag/value pair. The function fails when you store content before calling the function.
Parameters
| Input | |||||||||||||||||
| Name | Type | Description | |||||||||||||||
| handle | IniText | A handle returned from Ini_New. It represents the list of in-memory tag/value pairs. Returns an error when zero is passed. |
|||||||||||||||
| iniFileEncoding | IniFileEncodingType | Encoding of content stored in the list of in-memory tag/value pairs. The possible values are defined in enum IniFileEncodingType:
|
|||||||||||||||
Return Value
| Name | Type | Description | ||||
| status | int | Indicates whether the function was successful. A zero indicates success. A negative value indicates an error. If the value is in the range of –1 to –999, the error code is defined in userint.h. If the value is in the range of –5000 to –5999, the error code is defined in toolbox.h. For this function, the only errors you are likely to encounter are:
|
Additional Information
Library: Reading/Writing .ini-Style Files
Include file: toolbox\inifile.h
LabWindows/CVI compatibility: LabWindows/CVI 2020 and later