Sujet : Re: tablelist itemtodict
De : ralfixx (at) *nospam* gmx.de (Ralf Fassel)
Groupes : comp.lang.tclDate : 09. Oct 2024, 10:08:52
Autres entêtes
Message-ID : <ygajzehfxsr.fsf@akutech.de>
References : 1 2 3
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
* Manfred Stelzhammer <
manfred@antispam.at>
| I know, that I don't get the values from the table,
| but I thought the first row is the first item.
| The first row has the values "nix0 5 p-4 o0".
That's true, but 'item' in this context does not mean "item in the
tablelist", it literally means the 'item' argument to the 'itemtodict'
command, which is not some kind of index into the tablelist, but the
literal values:
puts "itemtodict : [.tbl itemtodict {nix0 5 p-4 o0}]"
itemtodict : col0 nix0 col1 5 col2 p-4 col3 o0
| I'll ask another question.
| Who can I get all values of a row from the table with the columnnames?
That would probably be
.tbl itemtodict [.tbl rowcget 0 -text]
HTH
R'