Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to know if a form is part of a formset.
Message
 
To
03/10/2003 09:54:33
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00834773
Message ID:
00834780
Views:
24
This may help:

do form yourform NAME FORM1
?form1.Class
?type("form1.formcount")="N" and form1.formcount>0

?type("form1.Parent")

if type("form1.Parent")="0"
?form1.Parent.Class
....

>I have a generic class "X" that is often added to a Form or a form inside a formset.
>This class performs operations with the Dataenvironment.
>So I need to know, at runtime, where is the object "X" running, if is a regular form,
>or a form with a parent "formset".
>
>Best regards,
>Pablo V.
Previous
Reply
Map
View

Click here to load this message in the networking platform