Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding to the data environment programmatically
Message
 
 
À
11/04/2016 23:39:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01634683
Message ID:
01634684
Vues:
56
>Is there a way to, at the beginning of a form, to add the data files to the data environment programmatically, or set a path for the DE to use before opening files? The problem I am having is that locally, or over the LAN, an app works just fine, and opens the files it needs using path strings, which change quite regularly, for example:
>
>
>thislanfile=&mlanpath+'abc.dbf'
>USE "&thislanfile" IN 0
>
>
>That works great, but when a user RDP's in, it doesn't work. Using messagebox, I can see that the machine/folder/dbf is correct, but I get error 1 in the 'use' line. Any help will be much apperciated!
>
>Thanks.

Don't use macro when it's absolutely unnecessary. Use name expression instead.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform