Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getfile() ???
Message
De
08/03/2005 09:20:54
 
 
À
08/03/2005 08:35:39
Allen Hanna
H. A. Hanna Associates
Indianola, Indiana, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Divers
Thread ID:
00993591
Message ID:
00993611
Vues:
10
>Hello All,
>
>The getfile() function is handy in coding but is there any way to force it to initially look at a specific directory?

Hi There
You can also use 'Set default' to preset starting directory.
Here is my wrapper function accepting start dir and also
targeted file extensions. Default directory is restored within function.
function svgetfile
    lparameters cPath,cExt
    local  cPath,cExt,sv_path,cFile
    sv_path=allt(sys(5)) + allt(sys(2003))
    if !directory(cPath)
        wait wind 'Directory not found'
        return ''
    endif
    set default to (cPath)
    cFile=getfile(iif(empty(cExt),'',cExt))
    set default to (sv_path)
    return cFile
Rgds++
*****************
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