Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Treeview.SelectedItem
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00885264
Message ID:
00886592
Views:
20
>
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform