NoCharacter (Function) In french: SansCaractère Returns a string after removing the specified characters: - from the left and right side of the initial string.
  within the initial string.
MyString is string MyString = NoCharacter("<Text>", "<>") // MyString contains "Text"
NoCharacter("Abracadabra", "a", sscInside) // Returns "Abrcdbra" NoCharacter("Abracadabra", "a", sscAll) // Returns "brcdbr"
Syntax
<Result> = NoCharacter(<Initial string> , <Characters to remove> [, <Position>])
<Result>: Character string Character string without the specified characters on the left and right side of the initial string. <Initial string>: Character string Initial character string. <Characters to remove>: Character string List of characters to be deleted from the initial string. If this parameter corresponds to an empty string (""), <Result> will correspond to the initial string. <Position>: Optional Integer constant Position of the characters to remove. This position can correspond to one of the following constants: | | sscAll | Removes all the specified characters from the initial string. Equivalent to sscRight + sscLeft + sscInside. | sscInside | Removes the specified characters within the initial string. | sscLeft | Removes the specified characters from the left side of the initial string. | sscOutside (Default value) | Removes the specified characters from both sides of the initial string. Equivalent to sscRight + sscLeft. | sscRight | Removes the specified characters from the right side of the initial string. |
Remarks If the string passed as a parameter is an ANSI string, the result will be an ANSI string. If the string passed as a parameter is a UNICODE string, the result will be a UNICODE string. Remark: If the result of NoCharacter on an ANSI string is assigned to a UNICODE string (and vice versa), the conversion will be implicitly performed. Business / UI classification: Neutral code
This page is also available for…
|
|
|
|