Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
List box rename problem
Message
De
27/11/2002 08:15:17
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
List box rename problem
Divers
Thread ID:
00727522
Message ID:
00727522
Vues:
34
Hello

i want to display file from c:\test directory in a list box and when the users right clicks on file it should prompt for new file name and when the users enters new file name i want to rename the file and update that filename in the listbox,how to do that.

right now i have list box and in the init of the form
DIMENSION cFile[1]
lcDir = "c:\test\"
Adir(cFile, lcDir + "*.*")
IF ADIR(cFile,lcDir + "*.*") = 0
	MESSAGEBOX('Sorry no files are present in the c:\test\ directory',0+16,'Please note')
	RETURN .F.
endif
how to get new name and rename the file and update the list.

thanks for any input.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform