#

# LogiView

## Function 'strsub'

| 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:
| {STR_EXPR} | Original string
| {STR_EXPR} | Substring to be replaced
| {STR_EXPR} | New substring (replacement text)
| - |
| ### Return value:
| {STR_VAR} | New string
| ### 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