Welcome to the Harris Geospatial product documentation center. Here you will find reference guides, help documents, and product libraries.


  >  Docs Center  >  IDL Reference  >  DataMiner  >  IDLdbRecordset::GetRecord

IDLdbRecordset::GetRecord

IDLdbRecordset::GetRecord

Use the IDLdbRecordset::GetRecord function method to retrieve the value of the current record in an IDL DataMiner anonymous structure. The field names of the structure are the field names of the recordset.

Note: Any blob data is placed in an IDL DataMiner pointer and as such must be freed using the IDL DataMiner PTR_FREE or HEAP_FREE routine.

Syntax


Result = RSobj -> [IDLdbRecordset::]GetRecord()

Return Value


Returns the value of the current record in an IDL anonymous structure.

Arguments


None.

Keywords


None.

Examples


The following code fragment creates a database object and connects to the database, creates a recordset object, then moves to the first record in the recordset, retrieves the value of the record, and uses the IDL DataMiner HELP procedure to display information on the record.

oDB = OBJ_NEW('IDLdbDatabase')
status = DIALOG_DBCONNECT(oDB)
oRS = OBJ_NEW('IDLdbRecordset', oDB, TABLE='table')
IF(oRS->MoveCursor(/FIRST) EQ 1)THEN BEGIN
    record = oRS->GetRecord()
    HELP, record, /STRUCTURE
ENDIF

Version History


5.0

Introduced



© 2018 Harris Geospatial Solutions, Inc. |  Privacy Policy
My Account    |    Store    |    Contact Us