|
-
Apr 14th, 2006, 06:20 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] concatenating the content of a listbox
Hi
I have a listbox that contains filenames,the listbox can contain 1 filename or more(up to 10).I want the content of the listbox to be displayed in a string Msg as follow:
If the listbox contains File1,File2 and File3,I want the string Msg to be:
Msg="File1,File2,File3"
but if the listbox contains only one filename,let's Msg be:
Msg="File1"
I tried a code but I obtained a comma at the the end of the string like
Msg="File1,".So how can I avoid the last comma?
thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|