Results 1 to 5 of 5

Thread: Appending to a string

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Ireland
    Posts
    224

    Question

    Hi guys
    I have the name of a file stored in a string. How do I append that filename with the size of the file itself and a timestamp. So basically what I am looking for is:

    Mystring = filename + filesize + timestamp.
    Any ideas are greatly appreciated...
    Thanks
    JK

  2. #2
    Guest
    Dim MyString As String
    MyString = Filename & Chr(32) & FileDateTime(Filename)

  3. #3
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    hey Matthew, since when is the filesize the same as Chr(32)?

    Code:
    Dim MyString$ 'is same as "As String", but I think it's cool :)
    MyString = Filename & FileLen(Filename) & FileDateTime(Filename)
    Adios.



    [Edited by Jop on 11-23-2000 at 11:10 AM]
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  4. #4
    Guest
    Oops. Forgot the FileSize.
    Chr(32) is the spaces in between or your going to get a bunch of jumbled up text.

    Code:
    MyString = FileName & Chr(32) & FileLen(FileName) & _
    Chr(32) & FileDateTime(FileName)
    But thanks Jop.
    Just makin' sure your paying attention .

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Ireland
    Posts
    224

    Cool Cheers

    Thanks a lot guys.
    Much appreciated

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