How do i delete the a set number of characters of a string(including spaces).
Cheers.
Mark
Printable View
How do i delete the a set number of characters of a string(including spaces).
Cheers.
Mark
Hello,
Iam sorry but iam not able to catch you.Can you be more clear please......
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.
I´m not sure if this is what you need.
dim str as string
str=Now
str=left$(str,len(str)-11)
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
Works a treat!!
Thanks