Let’s clarify two things: in scripts you can define variables only. Parameters can only be created on the parameter list view of the GDL editor, and the available parameter list of any object is fixed, cannot be changed in scripts (except of the newparameter command in backward migration).
Variables can not be reached or read by labels or listing or addons. If you need to “export” anything from your object, you need to add a parameter for it, and set it’s value in the paramscript. From labels you can reach parameters with a request (ASSOCLP_PARVALUE).
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SE