BBjProgramInfo::getLineCount


Description

In BBj 6.0 and higher, this method returns the number of lines in the program referenced by a BBjProgramInfo object.

Syntax

Return Value

Method

int

getLineCount()

Parameters

None.

Return Value

Returns the number of lines in the BBjProgramInfo object.

Remarks

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

Example

rem 'Get the number of lines in a BBjProgramInfo object.

Hello!=BBjAPI().getProgramInfo("Hello.bbj")

Lines=Hello!.getLineCount()

See Also

BBjAPI

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