Results 1 to 6 of 6

Thread: Deleting text

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Posts
    11

    Thumbs down

    How do i delete the a set number of characters of a string(including spaces).

    Cheers.

    Mark
    Could a single cell organism spell its name correctly!!

  2. #2
    Lively Member
    Join Date
    Oct 2000
    Location
    Chicago
    Posts
    97

    Didn't understand your problem

    Hello,
    Iam sorry but iam not able to catch you.Can you be more clear please......
    Anil

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Posts
    11
    Im copying the FileDateTime of a file to a label, but i only need the date, how do i delete the time(the last 11 characters, i think).

    I hope thats clearer.
    Could a single cell organism spell its name correctly!!

  4. #4
    Hyperactive Member
    Join Date
    Nov 2000
    Location
    Mexico City
    Posts
    306

    Cool

    I´m not sure if this is what you need.

    dim str as string

    str=Now
    str=left$(str,len(str)-11)

  5. #5
    Lively Member
    Join Date
    Oct 2000
    Location
    Chicago
    Posts
    97

    Here it is......

    If you just want the date and eliminate the time then you have to do this

    Label1.Caption = Left(Now, 8)

    This will show only the date in the label.

    Hope iam clear
    Anil

  6. #6

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Posts
    11

    Talking Thanks

    Works a treat!!

    Thanks
    Could a single cell organism spell its name correctly!!

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