Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extracting portions of a string?

Status
Not open for further replies.

CGann

Programmer
Jan 23, 2004
31
0
0
US
Hey all,

I've got string values in the format "+1000", "-07000", "+0630" etc. and I would like to extract certain parts of the string that I could then convert to numbers and perform mathematical functions on them.
i.e. pulling out the "+" or "-", "06" or "30" etc.

Can someone point me in the direction to look for this? (In ColdFusion, I would just use a mid("string", begin, end) type of function)

TIA!
 
Got it. "substring(1,2)"

sheesh. It's always the way. I look for hours before posting a question, then find it within seconds of submitting.

sorry 'bout dat.

TA!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top