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!

parse a field

Status
Not open for further replies.

aspnetuser

Technical User
Sep 9, 2004
273
US
I have a field
san fransisco, CA 19111


I need to create three formulas, C S Z

The delimiters are always , space, space]

what is the best way to do this?
 
Here is one way to do it:

//@City
stringvar array address := split({table.address},", ");
address[1]

//@State
stringvar array address;
split(address[2]," ")[1]

//@Zip
stringvar array address;
split(address[2]," ")[2]

~Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top