Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change DBC during Application Run
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00156044
Message ID:
00156375
Views:
42
>>Thisform.SetAll("Database",cNewdbcpathname,"Cursor")
>
>What? One line instead of thirty? I don't know how you get paid, bub, but I get paid by the line! :)
>
>Oh, well. That'll teach me to rely on KB code. I'll give it a shot (using ThisForm.DataEnvironment). And of course, I still need to get the database name from the first cursor. Thanks!

Ok, two minor things:
1. It's really Thisform (not Thisform.DataEnvironment), because DE doesn't have SetAll method.
2. To get database name you just use cDbcname=dbc(), assuming that database is opened already (I do it in Main.Prg).
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform