Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CD and justStem()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8
Divers
Thread ID:
01129637
Message ID:
01129899
Vues:
20
>>In VFP6, cd ? presents the current directory as the 'root'.
>>In VFP8, cd ? has some sort of algorithm which will present either the current drive's root directory as 'root' or the 'My Computer' as 'root'
>
>Would CD GETDIR() work for you?

Yepp! Thanks.

>
>>In VFP6, justStem() on a directory return the right most directory name.
>>In VFP8, justStem() on a directory returns an empty string.
>
>The justStem() function doesn't know if the parameter passed is file name, directory or something else so it's not clear what you mean.

In VFP8, justStem("c:\dir\lvl\") return empty
but
justStem("c:\dir\lvl") return "lvl"

So , I adjusted the code to justStem( set('directory') )
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform