Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Manfred Stelzhammer Newsgroups: comp.lang.tcl Subject: Re: tablelist itemtodict Date: Thu, 10 Oct 2024 17:32:59 +0200 Organization: A noiseless patient Spider Lines: 22 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Thu, 10 Oct 2024 17:33:00 +0200 (CEST) Injection-Info: dont-email.me; posting-host="9a32bad9fdf47458866af6cf58f9d077"; logging-data="3376320"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/3LSgzOy4Ijt0ht8aC2RsbkayJ92FbvYw=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:qfnNtpUJwNHEmw6CGh2EXLGwL78= Content-Language: en-US In-Reply-To: Bytes: 1802 Thank's for the answers Manfred Am 09.10.24 um 12:57 schrieb Ralf Fassel: > * nemethi > | > The itemtodict subcommand expects as its first argument an item > | > (i.e., a > | > list of elements), not an item index.  To get and print the desired > | > dict, use > | >     puts "itemtodict : [.tbl itemtodict [.tbl rowcget 0 -text]]" > | > or > | >     puts "itemtodict : [.tbl itemtodict [.tbl get 0]]" > | > >> > | Oops, I have basically written the same as Ralf. It was not before > | posting my answer that I saw Ralf's one. > > Always good to get confirmation from *the* boss himself ;-) > > R'