MSI Factory 2.3

MSI.DatabaseGetPrimaryKeys

MSI.DatabaseGetPrimaryKeys

Previous topic Next topic  

MSI.DatabaseGetPrimaryKeys

Previous topic Next topic  

OverviewExamples

number MSI.DatabaseGetPrimaryKeys (

number hDatabase,

string TableName )

Description

Calls the MsiDatabaseGetPrimaryKeys function that returns a record containing the names of all the primary key columns for a specified table.

Note:  This action returns a handle that should be closed using MSI.CloseHandle.

Parameters

hDatabase

(number) The handle to the database.

Note: You can get the database handle by calling MSI.GetActiveDatabase.

TableName

(string) Specifies the name of the table from which to obtain primary key names.

Returns

(number)  The handle of the record that holds the primary key names. You can use Application.GetLastError to determine whether this action failed, and why.

See also: Related Actions


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