Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GETFILE() change my path?
Message
De
25/08/2005 09:41:01
 
 
À
25/08/2005 09:28:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01043785
Message ID:
01043843
Vues:
18
Will chk for sure, but I remeber facing folowing problem.
I run getfile() once and then next time I run it
i/o starting from original starpoint it wld start where I selected last file.
I resolwed this by iplementing that wrapper function.
I don't remember realy what was it that realy changes after selecting file viagetfile() but something certainly does.
And I resolved it by this wrapper.
Will chk it now.
Or is maybe API call that changed in the meanwhile because I used to work
with W98 back then.

Rgds++








>I also tried it in vfp6sp5 and there too, no change of current path. Please re-check.
>
>>Hi Peter,
>>I don't know, I still with VFP6 SP5 .
>>I use this wrapper for years now because of this particular
>>reason. If getfile() is fixed in later versions then voila!
>>All chilldren happy :)
>>
>>Rgds++
>>
>>
>>
>>
>>>
>>>Huh? Getfile() does not change directory in my versions of vfp: 7 and 9.
>>>So, IMO, no wrapper is required.
>>>
>>>>Here is my wrapper function handling this isuue.
>>>>Next to saving current folder it also lets u start search starting from particular path.
>>>>
>>>>
>>>>function svgetfile
>>>>    lparameters cPath,cExt
>>>>    local  sv_path,aa
>>>>    sv_path=allt(sys(5)) + allt(sys(2003))
>>>>    if directory(cPath)
>>>>        set default to (cPath)
>>>>    endif
>>>>    aa=getfile(iif(empty(cExt),'',cExt))
>>>>    set default to (sv_path)
>>>>    return aa
>>>>
>>>>
>>>>
>>>>Rgds++
>>>>Sergio
>>>>
>>>>>When I issue a GETFILE() and the client navigates to a new folder, does that have any affect on my VFP application? Do I need to save something prior to the GETFILE() and then reset it?
>>>>>
>>>>>Brenda
*****************
Srdjan Djordjevic
Limassol, Cyprus

Free Reporting Framework for VFP9 ;
www.Report-Sculptor.Com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform