Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to know if a form is part of a formset.
Message
De
03/10/2003 09:57:25
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
03/10/2003 09:54:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00834773
Message ID:
00834777
Vues:
29
>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.

type('thisformset')='O' and !isnull(thisformset)

type('oFrm.Parent')='O' and !isnull(oFrm.Parent) and oFrm.Parent.Baseclass = 'Formset'

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform