GetPrivateProfileString
Reads a specified parameter from an .ini file using the standard .ini format.
Function | Group | Execution | Windows | Embedded | Thin Client | Mobile Access |
---|---|---|---|---|---|---|
GetPrivateProfileString | System Info | Synchronous | Supported | Supported | Supported | Not supported |
Syntax
GetPrivateProfileString( strSection, strName, strDefault, strFileName )
- strSection
- The section name to be read.
- strName
- The parameter name to be read.
- strDefault
- The default setting for this parameter. If the parameter is not found in the .ini file, the function will return this default setting.
- strFileName
- The path and name of the .ini file to be read.
Returned value
Returns the value of the specified parameter.
Examples
Tag Name | Expression |
---|---|
Tag | GetPrivateProfileString( “boot loader”, “timeout”, “50″, “C:boot.ini” ) // Returned value = 30 |