BBjRecordSet::getQuery

Description

In BBj 15.0 and higher, this method returns the query string from a BBjRecordSet.

Syntax

Return Value

Method

String

getQuery()

Parameters

None.

Return Value

Returns the query string from a BBjRecordSet.

Remarks

Returns null() if this BBjRecordSet doesn't have a query.

Example

rem ' BBjRecordSet::getQuery

database$ = "ChileCompany"
table$ = "ITEM"
user$ = "admin"
password$ = "admin123"
modes$ = "user="+user$+",password="+password$
select$ = "select * from "+table$
RecordSet! = bbjapi().createSQLRecordSet(database$,modes$,select$)
print "BBjRecordSet::getMode() = '",RecordSet!.getMode(),"'"
print "BBjRecordSet::getQuery() = '",RecordSet!.getQuery(),"'"
print "BBjRecordSet::getConnectString() = '",RecordSet!.getConnectString(),"'"
print "BBjRecordSet::isUpdatable() = '",RecordSet!.isUpdatable(),"'"
print "BBjRecordSet::isScrollSensitive() = '",RecordSet!.isScrollSensitive(),"'"

See Also

BBjAPI

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.