Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Generic in BeforeOpenTables in Data Environment
Message
De
07/01/2005 19:06:54
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:
00975325
Vues:
50
>Hi Cetin,
> I've looked over your code and I understand what each module is doing, but I am not sure where each module is being run from and in what order.
>
>Where is this snipett being executed from:
>
>* Assumes all aplication forms are in forms folder
>* For forms that have a DE replaces 'ALL' DE method codes with
>* custom BeforeOpenTables code
>Clear
>Clear All
>Local lnForms,ix
>Local Array arrForms[1]
>lnForms = Adir(arrForms, "forms\*.scx")
>
>TEXT to m.lcMethod noshow
>PROCEDURE BeforeOpenTables
>UpdateDE(this)
>ENDPROC
>EndText
>
>For ix=1 To lnForms
> Use ('forms\'+arrForms[m.ix,1])
> Locate For Atc('dataenvironment',BaseClass)>0
> If !Eof()
> Replace methods With m.lcMethod
> Endif
> Use
> Compile Form (arrForms[m.ix,1])
>Endfor
>
>Is SetDbPath a .prg? Is it being run from thr command window?
>
>Could you explain how each transition from one to another?
>
>Thanks,
>Bob

First one is for "run once" from command window (thinking you already created many many forms with that code is not in BeforeOT-or some already have and some not).

SetDbPath is also another developer snippet run from command window. Using that you set your data environment to desired folder and then "do form someForm" to test in IDE (most if not all of my forms use private sessions and such code that they could be tested separately). I hate to use original development data path for test data.

Actual code that goes into project is UpdateDE() and class code of oApp.
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