Re: tablelist itemtodict

Liste des GroupesRevenir à cl tcl 
Sujet : Re: tablelist itemtodict
De : ralfixx (at) *nospam* gmx.de (Ralf Fassel)
Groupes : comp.lang.tcl
Date : 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'

Date Sujet#  Auteur
8 Oct 24 * tablelist itemtodict8Manfred Stelzhammer
8 Oct 24 `* Re: tablelist itemtodict7Ralf Fassel
8 Oct 24  `* Re: tablelist itemtodict6Manfred Stelzhammer
9 Oct 24   +- Re: tablelist itemtodict1Ralf Fassel
9 Oct 24   `* Re: tablelist itemtodict4nemethi
9 Oct 24    `* Re: tablelist itemtodict3nemethi
9 Oct 24     `* Re: tablelist itemtodict2Ralf Fassel
10 Oct 24      `- Re: tablelist itemtodict1Manfred Stelzhammer

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal