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!

String Between Characters

Status
Not open for further replies.

Laurelin

Programmer
Jan 24, 2002
29
0
0
US
I have a string of data such as: DOCUMENT 3212 (9)

All I want to pull out of the string is the 9. The number will always be surrounded by ( )

There used to be a function called StringBetweenCharacters2 in order to do this. How I would I go about pulling the data out of a string such as this in Crystal 11?

 
Hi,
Try a combinatioon of InStr and MID functions:

MyStr = Mid({Table.Field},Instr("(")+1,1)

[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
extractstring({your field},"(",")")

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top