Walter Meester
HoogkarspelNetherlands
General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
Ramil,
Not trying to be picky, but the DBC() function only returns the current selected database. It does not give you the database for the current selected alias.
Tip. You can use the SET DATABASE command with a full path notation to differentiate between the two.
Walter,
>Thanks. Both your reply and Sergey's work. He just beat you by seconds and you could have the 3 stars instead.
>
>>Hi Ramil,
>>
>>Try
>>
>>cDatabase = CURSORGETPROP("Database",cMyAlias)
>>cDatabase should now contain the fullpath of the database container.
>>
>>Walter,
>>
>>>Hi all,
>>>
>>>Is there a way to identify which database is which in this case?
>>>
>>>* known: two databases of the same name (MyDatabase) in different folders
>>>use dataset1\table1 in 0 && (MyDatabase.dbc in \dataset1)
>>>use dataset2\table2 in 0 && (MyDatabase.dbc in \dataset2)
>>>
>>>Both databases will be opened in VFP. How can I tell one database from the other?
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only