Regarding the SETVAR ZLP keyword, want to use a variable to define the ‘Pn for parameter n’. I need to concatenate “P” with my index variable i. How do I accomplish this?
Thank you,
John
Regarding the SETVAR ZLP keyword, want to use a variable to define the ‘Pn for parameter n’. I need to concatenate “P” with my index variable i. How do I accomplish this?
Thank you,
John
Hi John,
Thanks for you question here on the forums.
You may use the following ZPL macro syntax, where param and surf are integers:
code$ = "P" + $STR(param)
SETVAR surf, code$, 1
For more details about how to use strings in the ZPL macro language, please check out this knowledgebase article:
Working with strings in ZPL Macros – Knowledgebase (zemax.com)
Best,
Csilla
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.