Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Releasing and loading the form again..
Message
From
24/01/2007 09:08:04
 
 
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:
01188616
Views:
18
>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! :)

If you want to 'refresh' images only then you just change Image.Picture property. Before calling Addobject('myimage','image') you would have to check if this control already exists, e.g.
If Type('Thisform.myimage')<>'O'
  Thisform.AddObject('myimage','image')
  ....
Endif
Thisform.myimage.Picture=...
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform