INI File - Set Value

Sets a value in an INI file.

Action ID:
Action Category:
Action List Syntax:

20
INI File
INIFile.SetValue (<<FILENAME>>, <<SECTION>>, <<VALUENAME>>, <<VALUEDATA>>)

Settings

File name:

The name of the INI file.

Section:

The name of the INI file section to operate on. Only the section name is required in this field—you do not need the surrounding brackets. (For example, Data is correct as opposed to [Data].)

Value name:

The name of the INI file value to modify.

Value data:

The data to write to the INI file value (i.e., the data to store in the INI file).

Error Codes

Value
(%LastErrorNum%)

Simple Message
(%LastErrorMsg%)

Verbose Message
(%LastErrorDetails%)

0 (OK)

 

 

1

MSG_ERR_INIFILE_MODIFY

MSG_ERR_INIFILE_MODIFY
MSG_ERR_FILE_NOT_FOUND
<<FILENAME>>

2

MSG_ERR_INIFILE_MODIFY

MSG_ERR_INIFILE_MODIFY
MSG_ERR_SET_VALUE
<<FILENAME>>
<<SECTION>>[<<VALUENAME>>] = <<VALUEDATA>>

Examples

None