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

Bruce Steers bsteers4 at gmail.com
Mon Feb 27 15:15:52 CET 2023


On Mon, 27 Feb 2023 at 13:17, Fabien TONIUTTI <fabien.toniutti at free.fr>
wrote:

> 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
>
>
see https://gambaswiki.org/wiki/comp/gb.qt4/_treeview/keys

For Each sKey As String In ColumnView1.Keys
  Print sKey
Next

or...

For a = 0 To (ColumnView1.Keys.Count - 1)
        Print "Mykey is: & ColumnView1.Keys[a]
Next

BruceS

Have a good look at all the columnView properties on the wiki :)

BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230227/097cf566/attachment.htm>


More information about the User mailing list