Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Treeview.SelectedItem
Message
 
À
15/03/2004 16:48:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00885264
Message ID:
00886592
Vues:
22
>
>TYPE( 'MyForm' ) = 'O' AND NOT ISNULL( MyForm )
>
It pains me to ask two questions when I prefer to manage the situatation such that I ask none, or at the most, one!

On thing that maybe different is that the forms in the project are "In Top Level Form" inside a "Top Level Form", and the names are public.

The issue arises when the main form is X-CLosed, and the housekeeping code checks for (and subsequently closes) any open (TYPE="O") "contained" forms.

Of one thing I am certain: If the public form is assigned (therefore re-typed) as a reference for a string, rather than form, TYPE vetting will NEVER miss it.

I have ventured from some standard legacy coding practices recently - perhaps that is where the fault lies:)

>
>But I would expect VARTYPE() to return 'X' for a form that has been released. Odd...
>
>I just did a quick test in the command window with these results:
>
>DO form itineraries
>
>Close the itineraries form by clicking on the close button
>
>?TYPE( 'itineraries') --> returns O
>?VARTYPE( itineraries ) --> returns X
>
>Don't know what is different about your environment...
Imagination is more important than knowledge
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform