Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
List box rename problem
Message
From
27/11/2002 08:15:17
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
List box rename problem
Miscellaneous
Thread ID:
00727522
Message ID:
00727522
Views:
33
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.
Next
Reply
Map
View

Click here to load this message in the networking platform