Home › Forums › Problems and solutions in GDL › Documentation elements, text handling › Parse a string or call a macro? › Reply To: Parse a string or call a macro?
October 8, 2015 at 08:30
#1670
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