Reply To: Parse a string or call a macro?

#1670
Gergely Fehér
Keymaster

Maybe there is an easier solution if you add 2 more hidden parameters to your object, for example shortCode, longCode and then fill them in the paramscript by the user chosen type:

values “type” “Crown A-01”, “Crown A-02”, “Crown A-03”
if type = “Crown A-01” then parameters shortCode = “A-01”, longCode = “A-01 Crown”
if type = “Crown A-02” then parameters shortCode = “A-02”, longCode = “A-02 Crown”
if type = “Crown A-03” then parameters shortCode = “A-03”, longCode = “A-03 Crown”

After you made this, your label could easily ask the values of shortCode and longCode, and you don’t need to split up strings.

Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SE