Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Releasing and loading the form again..
Message
 
 
To
24/01/2007 01:06:57
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 6
Miscellaneous
Thread ID:
01188499
Message ID:
01188608
Views:
16
>Hi Dan thanks, well yes, I have methods in form1, and I don't put codes in the init and load.
>
>My problem here is, I've created images in form1 using addobject. What I want to do now with the button is to re-create all the images. Of course, when the program does the addobject again, I'll get the error that it already exists. :)
>
>A better question here should be, how to delete all the images created using the addobject (becoz I have other images in the form created at design time).
>
>Thanks! :)

When you create your images, store references to each of them in a form's array property. I'm not 100% certain that

store NULL to thisform.arrImages would work, so you may do instead
for lnI = 1 to alen(thisform.arrImages)
   thisform.RemoveObject(thisform.arrImages[lnI])
next
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform