OK, second try: (I can't imagine that nobody did this before)

The task is to add the appropriate number of Printer connections for each site.
Please compare with my code above

Definition of numbers of printers per NetID
Retrieve NetID
Lookup in which Variable is my NetID (AND THIS IS MY PROBLEM!!!)
NumberOfPrinters = f(XPrinter Variables defined above)
for i = i to NumberOfPrinters
addprinterconnection
next

Basically, my question is: "How do I retrieve a variable whose name is stored in another Variable?"

many thanks and best regards,
HP.