Instead of using a global variable you could just give the text boxes the UID of the "lamp" that is creating them - my example was to try to show the idea of tieing /grouping several objects together using instance variables.
As LittleStain said there are many ways of doing this including the built in container (not sure if containers are in the free version of construct ?)