Information générale
Catégorie:
Codage, syntaxe et commandes
>>I am having a problem with GETDIR and I can't figure out what is going on. GETDIR is returning a numeric (1) but if I SET STEP ON before the call to GETDIR it returns the correct character string. Also, if I run the GETDIR command two times in a row, one after another, the first one returns a numeric and the second one returns a character. I have tried retyping the code and that didn't make a difference. The code is basically:
>>
>>LOCAL lcpath
>>
>>lcpath = GETDIR("X:\RESELLER\", "Locate Images")
>>
>
>Does this happen for you at the command window? How about in a dumb for with a single button? If not, can oyu narrow down the difference between the working and non working scenarios?
We have tracked it down to occurring on a command button of a toolbar. We use the Mere Mortals Framework and haven't confirmed whether it is an issue with the framework or VFP itself. If we call another form before issuing the GETDIR it works just fine. Weird. We have it working for now and Kevin will be onsite next week so we can run it by him then.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement