Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP6: Long directory names
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00827457
Message ID:
00827533
Vues:
17
Hey Dave,
I use the following in the ActiveVFP PostSetup:
DECLARE INTEGER GetLongPathName IN VB5STKIT.DLL ;
    STRING lpszShortPath, STRING lpszLongPath, INTEGER cchBuffer
VB5STKIT.DLL is included in VB5, I believe. I can send it to you if you want. In the code, you would use:
lcDirStr=IIF(EMPTY(cFolder),THIS.cAppStartPath,cFolder+"\")
lclongname = REPLICATE(CHR(0), 300)
lnlength = LEN(lclongname)
lnresult = GetLongPathName(@lcDirStr,@lclongname,lnlength)
lcRunDir=LEFT(lclongname,lnResult)+cProd+"\wwwroot"+",,201"+CHR(0)
lcReadDir=LEFT(lclongname,lnResult)+cProd+"r"+",,1"+CHR(0)
>I am looking for a way to display long directory names in VFP6. I am sure you have seen in Windows the directory name with ellipsis to shrink the name. Any ideas?
>TIA!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform