Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object in form tests T for existance then error
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Novell 5.x
Database:
Visual FoxPro
Divers
Thread ID:
01106772
Message ID:
01106801
Vues:
24
Put debugout thisform.oMainPane.name right after the test and remove all wait windows.

>Naomi,
>
>OK, tried that ... actually augmented my code with your suggested test as follows:
>
>
>* point a
>IF PEMSTATUS(THISFORM, 'oMainPane', 5) and ;
>      vartype(thisform.oMainPane.name) = 'C'
>
>   *point b
>
>   thisform.removeobject( 'oMainPane' )
>
>ENDIF
>
>
>Now, let me provide further information: I have wait windows for debugging at points a and b and the object really IS there. After the error occurs and I suspend, I test again and the object is in fact NOT there.
>
>I didn't really expect that the addition of a test for type(objectname)="C" would have any effect, but I did include it just in case - because I recognize that I am not infallible - but it made no difference.
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