Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
USE dbf from EXE file
Message
 
 
À
09/08/2016 12:55:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01639246
Message ID:
01639256
Vues:
66
Yes, it could be it. I have this USE and then LOCATE command right after. I thought that the window/prompt I see was generated by the USE command. But it could be that it was generated by the LOCATE command. Thank you!

But now I am wondering. I already changed my code to use CREATE CURSOR and then APPEND FROM ("MyTable"). Is this better than USE directly?


>Just a wild guess... Could it be that you forgot to Select the work area after the Use command? "IN 0" doesn't select the work area, the work area will remain what it already was.
>
>>Thank you. Something is not working in my app. When I create a cursor and then APPEND from the DBF included in the .EXE, everything works. The cursor is filled with the data from the DBF. But when I try to USE, it does not work. I have to go with the APPEND then.
>>
>>>No, .DBF is default extension when none is specified
>>>
>>>>This is what I thought too but I get a window/dialog prompting me to find/select the .DBF file. Should the extension .DBF be included in the USE expression?
>>>>
>>>>>Yes, it'll work. Even if you specify any path, DBF from exe will be open anyway.
>>>>>>
>>>>>>If I want to open a DBF included in the EXE, should the following code work:
>>>>>>
>>>>>>
>>>>>>USE MY_TABLE IN 0 ALIAS MY_TABLE
>>>>>>
>>>>>>
>>>>>>Or I have to "indicate" somehow that the .DBF is in the EXE?
>>>>>>
>>>>>>TIA
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform