RenamFile.....probleme

byhakim Messages postés 5 Date d'inscription samedi 9 août 2003 Statut Membre Dernière intervention 20 juin 2004 - 20 juin 2004 à 13:52
byhakim Messages postés 5 Date d'inscription samedi 9 août 2003 Statut Membre Dernière intervention 20 juin 2004 - 20 juin 2004 à 13:52
bonjour
on rentre directement dans le vif
ex

renamefile('c:\rep\test.txt','c:\rep\essai.txt')...ca marche

mais
var S:String;
....
S:= 'c:\rep\'+Edit1.Text+'.txt';
renamefile('c:\rep\test.txt',S) ;ou
renamefile('c:\rep\test.txt',Pchar(S))....ca ne marche pas

merci pour le coup d'idées
Rejoignez-nous