GetLineCount Method


8.7C, PLBCMP GUI Only

 

The GetLineCount method retrieves the number of lines in a multiline EDITTEXT or a RICHEDITTEXT object. The method uses the following format:

 

 

[label]

{object}.GetLineCount

[GIVING {return}]

 

Where:

label

Optional. A Program Execution Label.

object

Required. An EDITTEXT or RICHEDITTEXT object that is accessed.

return

Optional. A Numeric Variable that indicates the total number of text lines.

Flags Affected: EOS, OVER, ZERO

Note the following:

  1. If the value returned is zero, the ZERO Condition Flag is set.

  2. The OVER and EOS Condition Flags are always cleared.

  3. This method is not available when using the PL/B Web Server.

 

 

See Also: Method Syntax, EDITTEXT Methods, RICHEDITTEXT Methods

 



PL/B Language Reference GetLine Method GetPosFromCharIndex Method