I am reading In a date (EX: 19991027). But there are spaces at the beginning of the string. How can I trim ths?
PLEASE SOMEONE HELP ME!!!!
Thanks
Printable View
I am reading In a date (EX: 19991027). But there are spaces at the beginning of the string. How can I trim ths?
PLEASE SOMEONE HELP ME!!!!
Thanks
Trim(19991027)
MyVar = Trim$(MyVar)
Or if you only want to get rid of the leading spaces
MyVar = LTrim$(MyVar)
All set, Thanks. I just had the wrong context.