Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Generic in BeforeOpenTables in Data Environment
Message
 
To
07/01/2005 12:02:21
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:
00975300
Views:
59
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform