StrLine()


Returns a line of text from a block of text.

Syntax

StrLine(<cStr>, <nLine>, [<nLineLen>]) --> cLineOfText

Arguments

<cStr> --> The block of text to extract the line from.

<nLine> --> The number of the line to extract.

<nLineLen1> --> The length of the line to return. If not specified the default line length is 79. The valid range is between 4 and 254 characters.

Returns

Returns a string of text.

Description

This function extracts a line of text from a block of text. If the line has fewer characters than the indicated length, the return value is padded with blanks up to the specified line length. If the line number is greater than the total number of lines in <cStr>, an empty string is returned. ("")

Example

* Return quantity dispatched or sold between 01/01/03

* Extract the third line from the block of text cNotepad

* The line length will be 40 characters.

cLineOfText := StrLine(cNotepad, 3, 40)

____________________________

Related Topics:

Business Function List

StrLineCount()



CAPITAL VISUAL BUILDER