|
|
|
|
|
<ANSI string>.Increment (Function) In french: <Chaîne ANSI>.Incrémente Increments a number at the beginning or at the end of a string. String1 is string = "String1" // Displays "String2" Info(String1.Increment())
Syntax
<Result> = <Initial string>.Increment([<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: | | FromBeginning | The 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. | FromEnd | The 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
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|