|
-
Mar 26th, 2000, 10:59 PM
#1
Thread Starter
New Member
I am trying to output to a listbox, both the name of the file, as well as it's date of creation. This is fine, but I'm trying to format it into something neat.(does that make sense?)
If you consider this code I am currently using;
listbox.additem filename & space(10) & date
this is fine, but the position of the date on screen is totally dependant on the length of the filename, hence untidy.
Does anybody have any suggestions that might work?
(I have tried fooling arount with the width of the listbox and the strings, but couldn't get it to work)
-
Mar 26th, 2000, 11:05 PM
#2
Frenzied Member
Try
str= left$(Filename & space(20),20) & date
this'll work as long as no file names are greater than 20 characters, if not turn the 20's into 30s or something
Hope this helps
-
Mar 27th, 2000, 12:33 AM
#3
Consider using the ListView control rather that the ListBox.
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
|