Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a image box on the fly.
Message
From
24/09/1999 16:22:47
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00267048
Message ID:
00268768
Views:
21
Thank you for your help. I tried you suggestion and if worked without any problem. However, now I need to add code into the click even of the object I just created. It looks like I can use the Define Class but I am unclear as to how to do this.

This is my scenario: I have a form called frmMyForm. I have a table call Items. In the activate of frmMyForm I select the table and in a do loop add a object, Image bassed off of the bass class of Image, called imgItemX (X is a numeric counter). This works! Now in each imgItem I need to add code in the Click event that sets a verable to the X in the imgItemX. example: imgItem5 in the click event gnItemClicked = 5.

I keep getting nesting error if I try to define the class after adding the object.

What would be the best way to handle this?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform