Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Generic in BeforeOpenTables in Data Environment
Message
From
06/01/2005 18:29:03
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00974847
Message ID:
00974883
Views:
39
>Hi,
> I would like to would like to add code in the BeforeOpenTables in the Data Environment of every form that I create. I would like to do this once and have it created automatically when I create the form. The code is the same for every form. Can this be done or do I have to hard code it to the form's data environment after I create a new form?
>
>Thanks in advance,
>Bob

If you use default DE yes (which is actually a property referencing an object). In VFP8 and later you can add your own DE directly in designer.
In previous versions writing a little prg that traverses all forms and adds a code like:

Updatede(THIS)

works wonderfully well.
PS: DE.BeforeOpenTables run before Form.Load.
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
Next
Reply
Map
View

Click here to load this message in the networking platform