Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
USE external / Internal
Message
De
27/02/2017 12:57:43
Lutz Scheffler (En ligne)
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
27/02/2017 07:48:05
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 8.1
Network:
SAMBA Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01648563
Message ID:
01648580
Vues:
33
>>>>I have a table a.dbf included into an EXE.
>>>>Now I need to use a.DBF from HDD.
>...>>
>>>VFP will always open internal table first.
>>>The solution is never to name internal tables with the same name as external.
>>
>>That's the problem. :)
>>
>>I think about a project hook doing an pre-compile-copy or something the like ....
>
>Boris gave you the cleanest idea ;-)
>In case there is a need to get a little dirty, create a "factory_use" function always looking outside the exe for a file(InternalName+"_extern.dbf") and if existing use that one under the alias normally assigned to internal file...

I've done the projecthook solution The hook copies the a.dbf to a_internal.dbf and that is what is used inside the exe. The CA that deals with the internal depends on a #DEFINE anyway. Matter of 10 minutes
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform