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

splitting a string 1

Status
Not open for further replies.

scotchjc

MIS
Feb 8, 2003
4
US
I'm sure this is easy but I'm having a block....

I've got a string with "city, st zip" and I need to break it into three strings, one each for city state and zip.



John Crystal
 
here is an example on how to do it:

stringvar array Address := split(replace(replace({table.field}," ","/"),",",""),"/");

stringvar city := Address[1];
stringvar state := Address[2];
stringvar zip := Address[3];

~Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top