Skip to content

Modifying Strings

In order to delete or change parts of strings or change the following syntax is available.

Syntax {name,position_start,position_end,type,decimals}
control keys braces {}
position_start starting string position (including)
position_end ending string position (including)
type
  • g or u = upper case letters
  • k or l = lower case letters
  • t = trim (deletes all preceding and succeeding blanks)
  • decimals number of decimals with numeric strings

    Note

    This operation is not available via the context menu of object tables.

    Example

    From the present object ID=abcdefghijklmno of an object (e.g. Railway) only a part shall remain and be converted to capitals. Proceed as follows:

    • Open the dialog Modify Objects.
    • On the dialog Modify Objects select the action „Modify Attribute“ and the object „Railway“ and click OK.
    • On the dialog Modify Attribute select the attribute ID from the list box and the option „Replace Strings“.
    • Enter into box „Replace with“: {ID,4,10,g,}

    After clicking OK, the letters from the 4th to 10th position of the ID are kept and converted into capitals (new ID=DEFGHIJ).