MSI Factory 2.3

MSI.RecordGetString

MSI.RecordGetString

This is the first topic This is the last topic  

MSI.RecordGetString

This is the first topic This is the last topic  

OverviewExamples

string MSI.RecordGetString (

number hRecord,

number Field )

Example 1

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