Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't Remove Object added to _Screen
Message
 
À
20/09/1996 10:03:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00008239
Message ID:
00008331
Vues:
30
>>I have created a visual navigation class for my application. After instantiating the object with
>>
>>oNavigate = CREATEOBJECT('navigation'),
>>
>>I add the object to _SCREEN using
>>
>>_SCREEN.AddObject('oNavigate')
>>
>>Before exiting the application, I want to remove this object.
>>
>>I issue _SCREEN.RemoveObject('oNavigate'). I am expecting the object to disappear from the screen. But this does not happen. After my application calls CLEAR EVENTS, I still have to issue a CLEAR ALL command to remove the object.
>>
>>Is there another way to remove the object from the _SCREEN programatically?
>>
>>Thanx in advance.
>
>Don't you just want to add the object with:
>
>_SCREEN.AddObject("oNavigate", "Navigate")
>
>and then remove with:
>
>_SCREEN.RemoveObject("oNavigate")
>
>Will this work for you?
>
>-Doug-


I've solved the problem. I only had one READ EVENTS statement in my application. When I called CLEAR EVENTS the first time, no more statements were processed. I simply added another READ EVENTS statement after the first READ EVENTS. In between, I added all my cleanup code which included _SCREEN.RemoveObject('oNavigate')

Thanks for your help!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform