From: Jérôme Hénin (jerome.henin_at_uhp-nancy.fr)
Date: Sat Apr 03 2004 - 10:10:56 CST

Hi Ahmet,

Try this :
set ea [lindex [expr $$typea] 0]

expr forces Tcl to perform one more level of variable substitution. There may
be a prettier and/or more efficient solution, but I can't see it right now.

Regards,
Jerome

Le samedi 3 Avril 2004 15:48, Ahmet Bakan a écrit :
> Hi All,
>
> I am trying to write a TCL procedure to calculate the interaction potential
> between two proteins and I am stuck at the following point.
> Let's say:
>
> set HB {-0.022000 1.320000}
> set typea [$sel get type]
> set ea [lindex ${$typea} 0]
> return $ea #Returns me "$HB" and i cannot get 0th item of HB
>
> If someone can assist me at this point I would be grateful.
> Before I send this mail, I have searched internet for a TCL discussion
> list, but could not find an appropriate one. Do you have one to recommend?
>
> Thanks in advance,
> Ahmet
>
>
> ==========ABC==========
> Ahmet Bakan
> Chemistry, Junior
> Koc University
> abakan_at_ku.edu.tr
> ICQ #86167698
> http://home.ku.edu.tr/~abakan