BBjRecordData::getFieldList

Description

In BBj 4.0 and higher, this method returns the list of field names for a BBjRecordSet.

Syntax

Return Value

Method

BBjVector

getFieldList()

Parameters

None.

Return Value

Returns a vector containing the names of the fields associated with this BBjRecordSet.

Remarks

None.

Example

rem ' getFieldList.bbj

rem ' Define the connection information
database$ = "ChileCompany"
table$ = "CUSTOMER"
user$="admin"
password$="admin123"
connect$="jdbc:basis:localhost?database="+database$+"&user="+user$+"&password="+password$
modes$=""
select$ = "select * from "+table$

rem ' Create the RecordSet
RecordSet! = BBJAPI().createSQLRecordSet(connect$,modes$,select$)

rem ' Go to the first record
RecordSet!.first()

rem ' Retrieve the RecordData for the current record
RecordData! = RecordSet!.getCurrentRecordData()

rem ' Print the fields in this recordset
print "Fields: ",RecordData!.getFieldList()
stop

See Also

BBjAPI

BBjRecordData

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