ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / String functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
LineToPosition (Function)
In french: LigneVersPosition
Returns the position of the first character of a line in a block of text.
Example
// Initialize a multiline string
s is string = [
AA
BB
CC
]
 
// the function returns 1
LineToPosition(s, 1)
// the function returns 5
LineToPosition(s, 2)
// the function returns 9
LineToPosition(s, 3)
Syntax
<Result> = LineToPosition(<String> , <Line>)
<Result>: Integer
Position of the first character in the specified line.
<String>: Character string
Character string to use.
<Line>: Integer
Number of the search line.
Remarks
  • The line separator is the CR character (Carriage Return). It corresponds to 2 characters.
  • The characters that constitute the line separator are considered as belonging to the previous line.
Component: wd290vm.dll
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help