Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Another stupid pet trick (GetFile())
Message
De
12/03/2022 12:03:43
 
 
À
11/03/2022 06:40:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01683793
Message ID:
01683838
Vues:
33
>>>>>>o mage to Doug Hennig (I think)
>>>>>>
>>>>>>so here is the trick:
>>>>>>close databases
>>>>>>myFIle = GETFILE('XLS', 'SomeFile:', 'Foo') && see image 1
>>>>>>I am not in the right folder so I select the "navigate up" button.
>>>>>>immediately i am presented with another getfile dialog looking for a table
>>>>>>
>>>>>>to quote Davy Crockett - I'm not lost, just befuddled and bewildered.
>>>>>>
>>>>>>i should have this resolved in another 6 or 7 days but i thought i would share my ignorance with the world.
>>>>>
>>>>>The debugger should even tell you which table it was, that it was looking for.
>>>>>To me, it looks like the up button somehow got you out of the dialog and then some line right below was supposed to do something with some table, but you closed all, so it's now looking for one.
>>>>>
>>>>>IOW, immediately before the getfile(), insert a set step on and, well, see what's going on.
>>>>
>>>>Dragan Thanks for the reply.
>>>>i have tried to distill it down to the lowest common denominator.
>>>>I start my app and then while at the main menu, i suspend to the command window.
>>>>in the command window i issue:
>>>>Close Databases
>>>>Next I issue:
>>>>myFIle = GETFILE('XLS', 'SomeFile:', 'Foo')
>>>>Then i click the "navigate up" button.
>>>>Immediately image # 2 appears.
>>>
>>>Are there any timers in your application?
>>>
>>>Tamar
>> Oh I could kiss you!
>>That's what it was!
>
>Yeah, timers are great, but they can cause all kinds of trouble. You may need to temporarily turn the timer off before popping up the dialog.
>
>Tamar

yep did that and life is good!

thanks again
Barry Taft
i am only worried in the short term. once there is a problem, the solution usually presents itself.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform