Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multiple data directories
Message
 
À
25/02/1998 12:06:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00081000
Message ID:
00081418
Vues:
25
Okay thanks...I just had a quick look and I see where you mean...

Because of our situation, I have always USEd the tables programmically and I have done this with
USE (DataLocation + "filename")
from any workstation where DataLocation is kept in a config.dbf on each machine...

I will experiment...

Take care,
Joe

>>Please excuse my ignorance, but I don't use the form DE very often. I set-up my cursors, etc. before I get into a form. The reason I do this is that our data is "different"...when a user edits data, we need an effective date of change and we need to save all information (before and after changes)...this is because we need specific information for any specific day.
>>
>>Anyways, because I do this, I just issue commands like
>>
>>USE ("DataLocation"+datafile)
>>
>>before the DO FORM command. The DataLocation variable (or property) will map the data's source directory, depending on what network node you are on.
>>
>>I have a question: How are multi-user DE's usually handled? In other words, if the DBC is at the file server, how do I tell the system where to find the DBC?
>>
>>We have some forms with non-empty DE's, but they all use free tables and they are used before the Do FORM command...and this works fine for networked drives (using the above method), but it sounds like it won't work for DBCs.
>>
>>Joe
>
>When you have DE, you don't USE tables, because DE will do it itself. What you should do is to reset DE.Cursor properties ('Database' for DBC-tables, and 'CursorSource' for free tables) to needed path. You can do it programmatically in DE.BeforeOpenTables event.
Joseph C. Kempel
Systems Analyst/Programmer
JNC
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform