MSI Factory 2.3

MSI.DatabaseOpenView

MSI.DatabaseOpenView

Previous topic Next topic  

MSI.DatabaseOpenView

Previous topic Next topic  

OverviewExamples

number MSI.DatabaseOpenView (

number hDatabase,

string Query )

Description

Calls the MsiDatabaseOpenView function to prepare a database query and get a handle to a view.

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.

Query

(string) The SQL query string for querying the database. For correct syntax, see SQL Syntax.

Returns

(number)  The handle to the view. You can use Application.GetLastError to determine whether this action failed, and why. You can also retrieve extended error information using the MSI.GetLastErrorRecord action.

See also: Related Actions


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