I have five numeric display boxes on a page, and I want to put values into them without calling them specifically. Can I index them? And if I do index them, do I use their name or the object id?
For example, suppose I have display boxes, n0, n1, n2, n3, n4, n5, and want to populate the five displays like this…
I would assume that the variable “k” would take the place of the object id. But this does not work. I get an invalid variable error. I have tried making them all global. And I have tried putting the page number in there as well (page0.n[k].val, and page.n[k].val). Same errors all the way around.
Any help would be appreciated.