Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Open tables method
Message
From
08/03/2000 12:31:47
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00343314
Message ID:
00343321
Views:
21
>I want to put some code in the open tables method. I want it to first open the tables, then run my code. So I put DODEFAULT(), and then my code.
>
>I get an error that the data environment is already loaded. Why would it be trying to do it twice? So, I though, maybe in this case the DODEFAULT() isn't necessary. I took it out. Then it doesn't open the tables at all!
>
>What am I missing? Is there some way to get it to load the tables, just once, and then do my code? Are we not allowed to put code in that method?
>
>Thanks,
>
>Michelle


Michelle,
Open tables then run your code ? or the reverse ?
If open tables then run your code you could simply have your code in init. If reverse you could have your code in load, beforeopentables or even do this in opentables :

*Opentables
nodefault
*Yourcode
dodefault()

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