Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to know if a form is part of a formset.
Message
From
03/10/2003 09:57:25
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
03/10/2003 09:54:33
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00834773
Message ID:
00834777
Views:
28
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform