BBjProgramInfo::getListingVector


Description

In BBj 6.0 and higher, this method returns a BBjVector of strings containing the complete listing for a program referenced by a BBjProgramInfo object.

Syntax

Return Value

Method

BBjVector

getListingVector()

Parameters

None.

Return Value

Returns the program listing for a BBjProgramInfo object as a BBjVector of Strings, one for each line in the program.

Remarks

If the underlying program is protected, this method throws an !ERROR=62 (Protected Program).

Example

rem 'Get the program listing of a BBjProgramInfo object.

Hello! = BBjAPI().getProgramInfo("Hello.bbj")
Lines = Hello!.getLineCount()
ListingVector! = Hello!.getListingVector()
for Line = 1 to Lines
    print "[",str(Line),"] ",ListingVector!.get(Line-1)
next Line

See Also

BBjAPI

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