This documentation is archived and is not being maintained.
TextBuffer.numLines Method [AX 2012]
Retrieves the number of lines in the TextBuffer object.
Run On
Called
Return Value
Type:
int
The number of lines in the content.
Lines are separated by newlines ('\n').
{
TextBuffer txtb = new TextBuffer();
if (txtb.fromClipboard())
{
print "Clipboard contains ",txtb.numLines()," lines.";
}
}