PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
PositionToLine (Function)
In french: PositionVersLigne
Returns the number of the line to which belongs a character identified by its position in a block of text.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
Stored procedures This function is now available in the code of stored procedures.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Stored procedures This function is now available in the code of stored procedures.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Stored procedures This function is now available in the code of stored procedures.
Versions 20 and later
WINDEVJava This function is now available for the Java applications.
New in version 20
WINDEVJava This function is now available for the Java applications.
WINDEVJava This function is now available for the Java applications.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// 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 to which belongs the specified character.
<String>: Character string (with quotes)
Character string to use.
<Position>: Integer
Position of the character.
Remarks
The line separator is the CR character (Carriage Return).
Component : wd250vm.dll
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment