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
StringIncrement (Function)
In french: ChaîneIncrémente
Increments a number found at the beginning or at the end of a character string.
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
// 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 (with quotes)
String to increment.
<Position>: Optional integer
Position where the number (or digit) to increment is found:
FromBeginningThe number found 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 found 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:
  • if the string ends with a number, the number found at the end will be incremented,
  • if the string starts with a number, the number found at the beginning will be incremented,
  • otherwise, the digit 1 will be added at the end of string.
Component : wd240vm.dll
Minimum version required
  • Version 19
This page is also available for…
Comments
Exemplo StringIncrement
SAI_Texto=StringIncrement(SAI_Texto,FromBeginning)
SAI_resultado=StringIncrement(SAI_resultado,FromBeginning)
SAI_resultado1=StringIncrement(SAI_resultado1,FromEnd)

//Blog com Video e exemplo
http://windevdesenvolvimento.blogspot.com.br/2016/05/curso-windev-string-011-stringincrement.html
https://www.youtube.com/watch?v=8OyEZvOFq6s
De matos AMARILDO
26 May 2016