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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Theoretical String Extraction

Status
Not open for further replies.

O2BNSV

Technical User
Jun 29, 2006
104
0
0
US
I don't want to bog this down with the nuts and bolts of all that I am trying to do, but is it possible to extract a part of a string within parenthesis using vXI or v2008 as follows:

2 bottles of wine ($123.40)

I am hoping to enter inventory items into a database that isn't really designed to hold inventory. I can accomodate all but the price so I thought their might be a way to extract it out of a string if it is always enclosed in parentheses at the end of the string. Is their a way to do this knowing that the dollar amount won't always take up the same number of characters? Please advise.

 
This formula will display what is between the parens:

extractstring({table.field},"(",")")

or to turn it into a number:

tonumber(extractstring({table.field},"(",")"))

Andy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top