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