A number that uniquely identifies an object in the Crystal Enterprise system. Indexed. Read
Part | Type | Description |
---|---|---|
QueryResult.Item(Index).ID
This property is used to uniquely identify an object. The number is assigned at creation time, and is never changed until the object is destroyed. You should never hard
This example selects the name of a particular Report object using the ID to find it.
'Search report objects to retrieve the ID.
Result=InfoStore.Query("Select TOP 10 SI_ID, SI_NAME From CI_INFOOBJECTS where SI_PROGID='CrystalEnterprise.Report' and SI_INSTANCE=0")
'Retrieve the ID of the first report from the result.
'Retrieve the name of the report using the ID.
Result=InfoStore.Query("Select SI_NAME From CI_INFOOBJECTS Where SI_ID = " & CStr(ID))
Crystal Decisions, Inc. http://www.crystaldecisions.com Support services: http://support.crystaldecisions.com |