An array problem.
- From: Keith <kilowattradio@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 08 Feb 2010 04:13:09 -0800
Brain Lock
I can't get my brain working this morning.
set LTR(0) 0
set f [lindex [split $zy ,] 1]
set dj [list $f $zy]
puts stdout $dj
LTR {Some String}
if {[string range $zy 0 7] != "SIN,CNV,"} {\
putkey2 "TRN,$SIN_INDEX" "dload TRN cmd EDC"
array set L $dj
eval incr ${f}(0) 1
if I did this all by typing this line:
set ${f}(${f}(0)) "$SIN_INDEX,$zy,$zzf,$digest"
would look like this:
set LTR(1) "$SIN_INDEX,$zy,$zzf,$digest"
}
IOW how do I get LTR(${f}(0)) to use 1 or whatever number is assigned to
the array LTR(0).
TIA.
--
Best Regards, Keith
http://home.comcast.net/~kilowattradio/
Tired of Google Groups?
http://home.comcast.net/~kilowattradio/usenet.html
.
- Follow-Ups:
- Re: An array problem.
- From: slebetman@xxxxxxxxx
- Re: An array problem.
- From: Gerald W. Lester
- Re: An array problem.
- Prev by Date: Re: Communicate between TCL and Visual Basic(VB)
- Next by Date: Re: An array problem.
- Previous by thread: Communicate between TCL and Visual Basic(VB)
- Next by thread: Re: An array problem.
- Index(es):
Relevant Pages
|