[Gambas-user] Columnview key

Rohnny Stormo rohnny at ...1248...
Mon Dec 26 10:09:52 CET 2005


Hi group.

I have a Columview with x number of items in. The key is made out of
inserted time.
Now I need to get the columns back for futher use. Is there an example 
of this?

I have'nt found a a solution of retriew the key. I want something like this.

Dim i as integer
for i = 0 to columnview1.count -1
    key = columnview1[i].key
-------------------------------------^ Gambas want the key here.
   
    'get x 2
    field2_in_column = columnview1[key,1].text
next

I could use count+1 but it do fail when I delete 1 from the columnview

Another solution could be
for i = 0 to columnview1.count -1
    Columnview1[i].selected=true
'--------------------------^ Again the key should in here , grrr
    key = Columnview1.key
    'get x 2
    field2_in_column = columnview1[key,1].text
next

Running Gambas 1.9.22

Regards

   




More information about the User mailing list