Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Generic in BeforeOpenTables in Data Environment
Message
De
06/01/2005 18:29:03
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Divers
Thread ID:
00974847
Message ID:
00974883
Vues:
36
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform