PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
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
Increments a number at the beginning or at the end of a string.
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
// Displays "String2"
Info(StringIncrement("String1"))
Syntax
<Result> = StringIncrement(<Initial string> [, <Position>])
<Result>: Character string
Initial string with the incremented number (or digit).
<Initial string>: Character string
String to increment.
<Position>: Optional integer
Position of the number (or digit) to increment:
FromBeginningThe number at the beginning of the string is incremented.
If the string does not start with a number, the digit 1 is added at the beginning of the string.
FromEndThe number at the end of the string is incremented.
If the string does not end with a number, the digit "1" is added at the end of the string.

If this parameter is not specified, there are three possible cases:
  • the string ends with a number: in this case, the number at the end will be incremented,
  • the string starts with a number: in this case, the number at the beginning will be incremented,
  • the string does not start or end with a number: in this case, the number "1" will be added at the end of the string.
Business / UI classification: Neutral code
Component: wd270vm.dll
Minimum version required
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment