BBjRecordSet::isUpdatable

Description

In BBj 15.0 and higher, this method returns a boolean value indicating whether this is an updatable SQL BBjRecordSet (see BBjAPI::createSQLRecordSet).

Syntax

Return Value

Method

boolean

isUpdatable()

Parameters

None.

Return Value

Returns a boolean value indicating whether this is an updatable SQL BBjRecordSet.

Remarks

Returns false if this is not an SQL BBjRecordSet, or if this is an SQL BBjRecordSet that did not set the updatable property to true on creation (see BBjAPI::createSQLRecordSet).

Example

rem ' BBjRecordSet::isUpdatable

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

BBjAPI::createSQLRecordSet

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