BBjAPI::getOpenSQLChannels

Description

In BBj 18.0 and higher, this method returns a BBjVector of open SQL channel numbers.

Syntax

Return Value

Method

BBjVector

getOpenSQLChannels()

Parameters

None.

Return Value

Returns a BBjVector of open SQL channel numbers.

Remarks

The structure of the legacy SQLCHN variable limits it to 16-bit SQL channel numbers. This method returns the same information, but it doesn't impose any inherent limit; it can return SQL channel numbers beyond 65535.

Example

sql = sqlunt
sqlopen (sql)"ChileCompany"
vector! = bbjapi().getOpenSQLChannels()
if (vector!.size()) then
    for i = 0 to vector!.size() - 1
        sql = vector!.get(i)
        print sql
    next i
endif

See Also

BBjAPI

SQLCHN Variable - Open SQL Channels

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