VMD-L Mailing List
From: Mgr. Lubos Vrbka (lubos.vrbka_at_uochb.cas.cz)
Date: Wed Apr 26 2006 - 06:29:48 CDT
- Next message: angel : "Compiling problem"
 - Previous message: John Stone: "Re: fedora core 5 and VMD 1.8.4"
 - In reply to: John Stone: "Re: tcl question"
 - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
 
dear john and others,
thanks for the example. after some additional reading i arrived at the
(almost) same result.
>   Here's a simple example I just wrote up:
> 
> proc myproc {} {
>   set a {}
>   lappend a list
>   lappend a of
>   lappend a stuff
>   puts "List: $a"
>   set myary(A) $a
>   set myary(B) {another list of stuff}
> 
>   puts "Array values inside proc:"
>   puts "[array get myary]"
> 
>   return [array get myary]
> }
> 
when running such code in the tk console, the whole [array get myary]
list is returned and assigned to the variable, but also printed to the
console. is this correct behavior? or just some 'feature' of the vmd tk
console? can i somehow get rid of it?
regards,
lubos
-- ..................................................... Mgr. Lubos Vrbka Center for Biomolecules and Complex Molecular Systems Institute of Organic Chemistry and Biochemistry Academy of Sciences of the Czech Republic Prague, Czech Republic http://www.molecular.cz/~vrbka .....................................................
- application/x-pkcs7-signature attachment: S/MIME Cryptographic Signature
 
- Next message: angel : "Compiling problem"
 - Previous message: John Stone: "Re: fedora core 5 and VMD 1.8.4"
 - In reply to: John Stone: "Re: tcl question"
 - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
 



