AsItemName - ObjectVision/GeoDMS GitHub Wiki
String functions AsItemName
- AsItemName(string_dataitem)
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.
data items with string value type
argument string_dataitem must be utf8 encoded (default).
7.412
parameter<string> ValidItemName := AsItemName(a);
a | ValidItemName |
---|---|
'12&e €b naam' | '_12_e_€b_naam' |