Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Save/Remove/Restore an object??
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Save/Remove/Restore an object??
Divers
Thread ID:
00671677
Message ID:
00671677
Vues:
61
I have an scx form and want to remove a few objects off it, then later
restore them. (for what I'm doing the visible property won't work).
Anyway, my problem is that I can save the object like this...

loObjectName = ThisForm.cboPlans
oapp.otoolbar.autorequery.vv_object_sweeper[1,2] = loObjectName

Then remove the object like this....

ThisForm.RemoveObject("cboPlans")


This is the point where I have a problem. Once I've issued the
RemoveObject, the spot in the array where I was saving it is also gone!
GONE! arrrrhh! What the heck is it saving by reference or something? The
idea was that then I could do this....

loObjectName = oapp.otoolbar.autorequery.vv_object_sweeper[1,2]
ThisForm.AddObject(loObjectName)

..But obviously this isnt going to work if the spot in the array is
destroyed. The only other thing I can think of is to write a program that
saves all the properties of the object and then cycles though all of that in
some massive array to restore the stupid thing. Needless to say not only
does that sound like a major pain in the neck, but it'd probably take quite
a while to run.....
ICQ 10556 (ya), 254117
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform