AsItemName
string-functions AsItemName
syntax
- AsItemName(string_dataitem)
definition
AsItemName(string_dataitem) results in the conversion from string argument string_dataitem to a valid tree-item-name.
Invalid characters (including spaces) are replaced by underscores. Multiple underscores behind each other are replaced by one underscore.
If the string starts with a numeric character, an underscore is used as first character.
applies to
data items with string value-type
conditions
argument string_dataitem must be utf8 encoded (default).
since version
7.412
example
parameter<string> ValidItemName := AsItemName(a);
a | ValidItemName |
---|---|
‘12&e €b naam’ | ‘12_e€b_naam’ |