Results 1 to 3 of 3

Thread: listboxes

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Posts
    3
    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)

  2. #2
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    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

  3. #3

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width