This call is not needed to control the RadioTrack cards. If you want to save settings to an OS/2-style ini file using SysIni, this call will considerably increase speed to access the ini file. This function uses the API call PrfCloseProfile. The format of the function is:

rc = RTIniClose( iniHandle )

The iniHandle is the file handle of the ini file as returned by RTIniOpen.

rc returns errors as follows:

0 Error occurred
1 Success

Sample code to use RTIniOpen and RTIniClose to save the variable port_Address in an Ini file. Note that in this example, if the RTIniOpen fails, the variable is still saved to the ini file.

inifile = 'APP.INI'
AppKey = 'myApp'
port_Address = X2D( '300' )
IniHandle = RTIniOpen( inifile )
iniRC = SysIni( inifile, AppKey, 'port_Address', port_Address )
IF IniHandle <> 0 THEN
rc = RTIniClose( IniHandle )