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!

substring type question

Status
Not open for further replies.

q4s72534

MIS
Aug 19, 2003
59
0
0
US
i want to pull the first 3 numbers after the "-"

example:
4578477-78434

I want to see "784"

what is the code? i tried this and it didn't work.

fieldName["-",3]


thanks!
 
try fieldName[(index(fieldName,"-",1)+1),3]

or

field(fieldName,"-",2)[1,3]

*this all assumes only a single "-" in fieldName
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top