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

Parsing Text from a Comment Field

Status
Not open for further replies.

msakowitz

MIS
Mar 11, 2011
3
US
I need help in developing a formula that can parse some text from a comment field. I am looking for a way to identify the text to grab based on a particular character.

Example Comment
'Type: Building; Location: 5th Floor Lab; This lab was named for a million dollar donor.'

So, what I would like is to grab either this ('Type: Building; Location: 5th Floor Lab') OR just to grab this ('Type: Building')

your help is greatly appreciated.
 
stringvar array x := split({table.comment},";");
x[1]+
(
if ubound(x)>1 then
";" + x[2]
)

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top