MSI Factory 2.3

INIFile.SetValue

INIFile.SetValue

This is the first topic This is the last topic  

INIFile.SetValue

This is the first topic This is the last topic  

OverviewExamples

INIFile.SetValue (

string Filename,

string Section,

string Value,

string Data )

Example 1

INIFile.SetValue(_TempFolder .. "\\settings.ini", "Columns", "Name", "Application Path");

 

-- Get the error code of the last action.

error = Application.GetLastError();

 

-- If an error occurred, display an error message.

if (error ~= 0) then

   Dialog.Message("Error", _tblErrorMessages[error], MB_OK, MB_ICONEXCLAMATION);

end

Sets the string "Application Path" to be the data for the "Name" value in the INI file called "settings.ini" that is located in the user's temp folder. If an error occurs, a dialog is shown with the error code message.

Note: _TempFolder is a built-in variable that contains the path to the user's system "Temp" folder.

See also: Related Actions


Learn More: Indigo Rose Software - MSI Factory - Buy Now - Contact Us