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.
iPhone/iPad This function is now available for the iPhone/iPad applications.
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.
iPhone/iPad This function is now available for the iPhone/iPad applications.
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.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Stored procedures This function is now available in the code of stored procedures.
Versions 19 and later
Windows Mobile This function is now available for the Windows Mobile applications.
New in version 19
Windows Mobile This function is now available for the Windows Mobile applications.
Windows Mobile This function is now available for the Windows Mobile applications.
Versions 20 and later
Android This function is now available for the Android applications.
Android Widget This function is now available in Android Widget mode.
New in version 20
Android This function is now available for the Android applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
Android Widget This function is now available in Android Widget mode.
Versions 21 and later
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Apple Watch This function is now available in Apple Watch 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 : wd240vm.dll
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment