MSI.RecordGetString |
|
|
|
MSI.RecordGetString |
|
|
|
|
||
OverviewExamples
hDatabase = MSI.GetActiveDatabase(_hInstall);
if (hDatabase ~=0) then
hRecord = MSI.DatabaseGetPrimaryKeys(hDatabase, "FeatureComponents");
nNumFields = MSI.RecordGetFieldCount(hRecord);
strMessage = "The names of the primary key columns for FeatureComponents are:\r\n\r\n";
for index = 1, nNumFields do
strRecordString = MSI.RecordGetString(hRecord, index);
strMessage = strMessage..strRecordString.."\r\n";
end
Dialog.Message("Primary Keys", strMessage);
MSI.CloseHandle(hRecord);
else
Dialog.Message("Error", "Failed to get the handle to the active database.");
end
Shows the names of all of the primary key columns in the table named "FeatureComponents" in a dialog message.
See also: Related Actions
Learn More: Indigo Rose Software - MSI Factory - Buy Now - Contact Us