Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Databases with same name
Message
From
20/10/2003 10:13:07
 
 
To
20/10/2003 10:10:07
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00840260
Message ID:
00840264
Views:
18
This message has been marked as a message which has helped to the initial question of the thread.
in the set database to, use the full path to the dbc. i like to put this into a var and use that, e.g.
open database dbfact shared
lcDB1=DBC()
open database ftbasic\dbfact shared
lcDB2=DBC()

set database to (lcDB1)
** etc.
>Hi
>
>I need run the folhowing code , but don´t work
>
>I think that problem is with two databases have the same name
>
>Can you help me ?
>Thanks
>
>
>set defa to c:\elasoft\dados
>
>open database dbfact shared
>open database ftbasic\dbfact   shared
>
>set database to dbfact
>
>*!* How Many Tables are in the DBC
>lnTableCount = ADBOBJECTS(aTableNames, [TABLE])
>
>
>FOR lnCounter = 1 TO lnTableCount
>
> SET DATABASE TO ftbasic\dbfact
> IF INDBC( aTableNames[lnCounter] , 'TABLE')
>
>  SET DATABASE TO dbfact
>   use (aTableNames[lnCounter]) IN 0
>   lcAppender = "ftbasic\dbfact!" + aTableNames[lnCounter]
>   append from &lcAppender
>
> ENDIF
>
>NEXT lnCounter
>
>
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform