snowingnow
Programmer
I use following script to reformate a string
..
set fieldo [split $segment |]
set field1 [lindex $fieldo 13]
set field2 [lindex $fieldo 14]
In field2, there may have some sub segments in it,some time only one, if have more than one then split by "^",
My question is how to i determine how many element in the field2, bascially i want to retrieve index of 0(first one) and 7(filed 8) if they have..
How can i do that?
Thanks
..
set fieldo [split $segment |]
set field1 [lindex $fieldo 13]
set field2 [lindex $fieldo 14]
In field2, there may have some sub segments in it,some time only one, if have more than one then split by "^",
My question is how to i determine how many element in the field2, bascially i want to retrieve index of 0(first one) and 7(filed 8) if they have..
How can i do that?
Thanks