Sujet : Re: tablelist itemtodict
De : ralfixx (at) *nospam* gmx.de (Ralf Fassel)
Groupes : comp.lang.tclDate : 08. Oct 2024, 17:50:06
Autres entêtes
Message-ID : <ygar08qfsjl.fsf@akutech.de>
References : 1
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
* Manfred Stelzhammer <
manfred@antispam.at>
| puts "itemtodict : [.tbl itemtodict 0]"
>
| the puts command show me: % itemtodict : col0 0 col1 {} col2 {} col3 {}
>
| I expected that I get "col0 nix0 col1 5 col2 p-4 col3 o0".
>
| I'll get all values from a row with columnname like a dict.
>
| What do I wrong or I don't understand?
If I understand the 'itemtodict' command correctly, it will not return
the values of the *table*, but from the *item* you passed to it.
https://www.nemethi.de/tablelist/tablelistWidget.html#itemtodict [...]
The dictionary's keys will be column numbers or names, and the values
will be the corresponding elements of the given item.
[...]
Since the only value in the item is '0', you get empty strings for the
rest.
HTH
R'