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!

regarding list 1

Status
Not open for further replies.

RajVerma

Programmer
Jun 11, 2003
62
DE
hi all,

I have a problem with list. I have a list that looks like this.

(not C1) C2 C3

now, when I give this as an input to my procedure then I guess it's processing this list as 4 elements, but I want to make it understand that (not C1) as a single element. how to do it? it works fine when I produce the list this way, (notC1) C2 C3, but I want the space between not and C1 and still I want to consider it as a single element. can some one help me.

thanx,
Raj.
 
The following code returns 'not C1':

proc p {y} {

set z [lindex $y 0]

return $z

}

set l [list {not C1} C2 C3]

p $l

Hope it helps,
Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top