Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Open the physical table which is also included in exe
Message
 
À
11/05/2007 16:43:11
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de projet
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP1
Divers
Thread ID:
01224831
Message ID:
01224847
Vues:
10
>>>Hah - I managed to put that all in the title.
>>>
>>>OK - here's the deal: a lookup table is included in the exe, and I'm writing an utility which would allow the developers to update it while running the exe. Now since it's included in the exe, it's read only. Is there a way to open the original table on disk instead, or will Fox open the included one no matter what I do?
>>
>>
>>
>>or will Fox open the included one no matter what I do?
>>

>>
>>:-))
>
>I feel stupid, I missed the joke... any help instead, bratko?

VFP always search first in the EXE. So no matter what you'll do the table in EXE will be opened INSTEAD of when you build it in EXE first rename it to something else and use something like:
TRY
  USE MyExternalTable IN 0 ALIAS MyTable
CATCH 
  *** The External Table don't exists
   USE MyInternalTable IN 0 ALIAS MyTable
ENDTRY
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform