Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Renaming a Directory Within VFP5
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00172494
Message ID:
00172505
Vues:
26
>>Does anyone know how to rename a directory within VFP5 without using the DOS rename command?
>
>Hi Jeff,
>
>An API call can do the trick:
>DECLARE SHORT MoveFile IN Win32API;
>   STRING @lpcurrentname, STRING @lpnewname
>* lccurrent is the current name
>* lcnew is the new name
>llresult = MoveFile(@lccurrent, @lcnew)
>hth,

Make that:
llresult = (MoveFile(@lccurrent, @lcnew) # 0)
to return a logical value. Oh boy, it's Monday isn't it?
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform