Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to know if a form is part of a formset.
Message
 
À
03/10/2003 09:54:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00834773
Message ID:
00834780
Vues:
23
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform