|
This function replaces part of a string expression by another substring. The result of the function is the changed new string. |
||||||||||||
Syntax: |
|||||||||||||
{STR_VAR}= strsub({STR_EXPR},{STR_EXPR},{STR_EXPR}) | |||||||||||||
I/O parameters:
|
|||||||||||||
Return value: |
|||||||||||||
|
|||||||||||||
Example: |
|||||||||||||
Declaration of Variables | |||||||||||||
10 DOCU_STRING_1 = "DataView" 20 DOCU_STRING_2 = strsub(DOCU_STRING_1,"Data","Logi") 30 put(strcat(DOCU_STRING_1," => ",DOCU_STRING_2)) |
|||||||||||||
Result: | |||||||||||||
![]() |
|||||||||||||
![]() |
Functions and commands: Editing Strings |