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 : 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'

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