With text functions, you can manipulate text (strings) and parameters and variables of the type Text.
Length(Str) |
Returns the length of a text variable or parameter. |
Find(StrSource, StrFind) |
Returns the position of specific content inside a text variable or parameter. |
InsertStr(StrSource, Posistion, StrContent) |
Inserts additional text into a text variable or parameter. |
DelStr(StrSource, PosFrom, Length) |
Removes characters from a text variable or parameter. |
SubStr(StrSource, PosFrom, Length) |
Returns a specific part of a text variable or parameter. |
This function returns the length (number of characters) of a text variable or parameter.
Length(Str)
Parameters |
Str |
Text |
Specifies the text (string) for which the length should be determined. |
Returns |
|
Numeric |
|
This function searches the source text for some specific content and returns its position inside the text variable or parameter.
Find(StrSource, StrFind)
Parameters |
StrSource |
Text |
Specifies the source text (string) that should be searched. |
|
StrFind |
Text |
Specifies the text (string) that should be found. |
Returns |
|
Numeric |
|
This function inserts additional text at a specific location into a text variable or parameter and returns the extended text.
InsertStr(StrSource, Posistion, StrContent)
Parameters |
StrSource |
Text |
Specifies the original text (string). |
|
Position |
Numeric |
Specifies the position at which the additional text should be inserted. |
|
StrContent |
Text |
Specifies the additional text (string) that should be inserted into the original text. |
Returns |
|
Text |
|
This function removes characters from a text variable or parameter at a specific location and returns the shortened text.
DelStr(StrSource, PosFrom, Length)
Parameters |
StrSource |
Text |
Specifies the original text (string). |
|
PosFrom |
Numeric |
Specifies the position at which the removing of text should start. |
|
Length |
Numeric |
Defines the length of the section that should be removed (number of characters). |
Returns |
|
Text |
|
This function returns a specific part of a text variable or parameter.
SubStr(StrSource, PosFrom, Length)
Parameters |
StrSource |
Text |
Specifies the original text (string). |
|
PosFrom |
Numeric |
Specifies the position at which the newly created text should start. |
|
Length |
Numeric |
Defines the length of the section that should be included in the new text (number of characters). |
Returns |
|
Text |
|