Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Releasing and loading the form again..
Message
 
 
À
24/01/2007 01:06:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 6
Divers
Thread ID:
01188499
Message ID:
01188608
Vues:
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! :)

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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform