Products Downloads


French version


 

 

This function is used to write a string in an ".ini" file.

 

Context

  • Windows client,

  • Windows server,

  • Java client,

  • Java server,

  • Adelia Cloud client.

 

Parameters

ALPHA(n)

IniFile

Name of the ".ini" file.
If IniFile does not contain a full access path, the system will look for the file in the Windows directory and, if it does not already exist, will create it in the Windows directory.
If IniFile contains a full access path and the file does not exist, it will be created in the specified directory.

ALPHA(n)

Section

Registry section.
If Section contains a non-existent section, the section will be created.

ALPHA(n)

Key

Registry key.
If Key contains a non-existent key, the key will be created.
If Key contains the value "*BLANK", the Section will be deleted.

ALPHA(n)

Buffer

Variable to be written in the IniFile file.
If Buffer contains the value "*BLANK", the Key will be deleted.

BOOL

ReturnCode

Return code for the operation:
*TRUE if a string has been written, otherwise *FALSE.

 

Example

IniFile = 'User.ini'

Section = 'Profile'

Key = 'FD'

Buffer = 'Franck Dickinson'

CALL_DLL 'VATOOLBX.DLL' 'VaToolBxSetValueStr' IniFile Section Key Buffer ReturnCode

 

List of the VaToolBx functions by topic

 

↑ Top of page


  • Aucune étiquette