AVWIT
06-04-2007, 09:24 AM
Ok. I've got a form that has a bunch of dynamic label fields. I am reusing them and assigned the captions a value. I want to be able to click on any of these fields and open a new form and pass the caption value to the open args. I can do this for each one individually, but I have close to 200 labels on the page and I'd like to make this dynamically when I iterate through the labels. Here is my coding logic:
iterate through labels
- change OnClick property to OpenForm "x" and pass it OpenArgs "y"
when label is clicked on
- Form "x" should open
- OpenArgs should contain the caption value of the clicked on label box
Any help would be appreciated. Thanks. If there are any more questions on what i'm trying to accomplish and what I know will and won't work, let me know.
David
iterate through labels
- change OnClick property to OpenForm "x" and pass it OpenArgs "y"
when label is clicked on
- Form "x" should open
- OpenArgs should contain the caption value of the clicked on label box
Any help would be appreciated. Thanks. If there are any more questions on what i'm trying to accomplish and what I know will and won't work, let me know.
David