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!

combine three fields

Status
Not open for further replies.

snowingnow

Programmer
Jun 1, 2006
32
CA
I have three fields, now i want to combine those three fielld as one fiels with seprator "~". How can i do that:
That says: |Field1|field2|field3|..
I want to come up with: ||Field1~Field~Field||
Please help
 
if your "|" characters are real:

Code:
set flist [split "|Field1|field2|field3|" |]
set fstring "||"[join $flist ~]"||"

_________________
Bob Rashkin
 
thanks but i have problem using the "~" as sperator, what is acssii code for the "~"?
 
176 or \176

_________________
Bob Rashkin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top