[Gambas-user] List of Keys in columnview...

Gianluigi gradobag at gradobag.it
Mon Feb 27 15:06:13 CET 2023


Il 27/02/23 14:16, Fabien TONIUTTI ha scritto:
> Hi everyone,
>
> Excuse me for this so simple question, but i tried a lot of solution 
> without success.
>
> I have one columnview with 150 rows with different String keys as 
> "fg","fte", etc...
>
>
> A) How could i list these keys in console.
>
>
> Dim a As Integer
>
> For a = 0 To (ColumnView1.Count - 1)
>        Print "Mykey is: & " What code here ??????????"
> Next
>
>
> Thx
>
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----

Hi,

You could try it this way:
If, however, the suggested code was helpful (or even not) you might 
deign to answer something...

     Dim a As Integer

     For a = 0 To (ColumnView1.Count - 1)
     ColumnView1.MoveFirst
     Print "Mykey is: "; ColumnView1.Item.Key
     ColumnView1.MoveNext
     Next
     Print "Mykey is: "; ColumnView1.Item.Key

Regards

Gianluigi



More information about the User mailing list