question

Visakh Sakulan avatar image
0 Likes"
Visakh Sakulan asked Joerg Vogel edited

How to get part of a string label ?

Like we use "concat" command to joint different string labels, is there a command to get just one part of a label .

eg: "label12AC", should be spilt as "label", "12" and "AC"

FlexSim 16.2.1
labelscommands
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Steven Hamoen avatar image
5 Likes"
Steven Hamoen answered Tee Hiett commented

@Visakh SakulanCheck all the functions with "string" in the name in the Command Helper. Especially "stringcopy" might be the function you are looking for

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Tee Hiett avatar image Tee Hiett commented ·

Excellent question and answer. the "stringcopy" met my immediate needs. This posting also led me to the String commands and to the num commands. Great help..

0 Likes 0 ·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Joerg Vogel edited

You can try the method replace with a regular expression. Parts you don't need can you replace with an empty string.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.