ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / String functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
StringIncrement (Function)
In french: ChaîneIncrémente
Increments a number at the beginning or at the end of a string.
Example
// Affiche "Chaîne2"
Info(StringIncrement("Chaîne1"))
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 is incremented,
  • the string begins with a number: in this case, the number at the beginning is incremented,
  • the string does not begin or end with a number: in this case, the digit 1 will be added at the end of the string.
Business / UI classification: Neutral code
Component: wd300vm.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

Last update: 03/25/2025

Send a report | Local help