the cobe below grabs the the last 8 characters of my string. I need the first 8 characters...anyone know how I can grab the first 8 characters?
thanks
VB Code:
tranperiod = tranperiod.Substring(tranperiod.Length - 8)
Printable View
the cobe below grabs the the last 8 characters of my string. I need the first 8 characters...anyone know how I can grab the first 8 characters?
thanks
VB Code:
tranperiod = tranperiod.Substring(tranperiod.Length - 8)
tranperiod = tranperiod.Substring(0, 8)
Something like that. It is a overloaded method. You should be able to set the start index, and the length.
How about
VB Code:
tranperiod = tranperiod.Substring(1, 8)
hellswraith is correct 0,8.