|
|
|
|
|
PositionToLine (Function) In french: PositionVersLigne Returns the number of the line that contains a character identified by its position in a block of text.
// Initialize a multiline string s is string = [ AA BB CC ] Â PositionToLine(s, 1) // Returns 1 PositionToLine(s, 2) // Returns 1 PositionToLine(s, 3) // Returns 1 because of CR PositionToLine(s, 5) // Returns 2
Syntax
<Result> = PositionToLine(<String> , <Position>)
<Result>: Integer Number of the line that contains the specified character. <String>: Character string Character string to use. <Position>: Integer Position of the character. Remarks The line separator is the CR character (Carriage Return).
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|