MSI.RecordSetInteger |
|
|
|
MSI.RecordSetInteger |
|
|
|
|
||
OverviewExamples
bRecordSet = MSI.RecordSetInteger(record, 6, 17);
Sets the record field '6' to the integer value 17 and if successful, sets the boolean variable "bRecordSet" to true.
-- Create a new record
record = MSI.CreateRecord(46546);
-- Set an integer
bRecordSet = MSI.RecordSetInteger(record, 6, 17);
if bRecordSet then
Dialog.Message("Success","Record Set properly.");
else
Dialog.Message("Error","Error setting record.");
end
-- Retrieve the integer
nInteger = MSI.RecordGetInteger(record, 6);
Dialog.Message("nInteger",nInteger);
-- Clear the record
bRecordClear = MSI.RecordClearData(record);
-- Try to retrieve the integer again
nCleared = MSI.RecordGetInteger(record, 6);
if (nInteger == nCleared) then
Dialog.Message("Error", "MSI.RecordClearData() failed to clear record.");
end
-- Clode the handle to the record
bClosed = MSI.CloseHandle(record);
Creates a record, writes to it, and reads the value. This script also contains some error handling.
See also: Related Actions
Learn More: Indigo Rose Software - MSI Factory - Buy Now - Contact Us