[Gambas-user] Columnview, how to read?

Werner wdahn at ...1000...
Tue Aug 26 12:03:02 CEST 2008


Fox wrote:
> Fox wrote:
>   
>> ...
>>
>>  CVmycv.MoveFirst
>>  FOR i = 0 TO CVmycv.Count - 1
>>
>>       S_0 = CVmycv.Item[0]
>>       S_1 = CVmycv.Item[1]
>>       S_2 = CVmycv.Item[2]
>>       S_3 = CVmycv.Item[3]
>>       S_4 = CVmycv.Item[4]
>>       S_5 = CVmycv.Item[5]
>>       FMain.CV_additems(S_0, S_1, S_2, S_3, S_4, S_5)
>>       CVmycv.MoveBelow()
>>
>>  NEXT
>>
>> ...
>>
>> The problem is that it moves to the first, but it don't go down
>> So I have ever the first row.
>>   
>>     
>
> If I make it using 2 buttons it works...
>
> PUBLIC SUB Button1_Click()
>   CVmycv.MoveFirst
> END
>
> PUBLIC SUB Button2_Click()
>   TextBox1.text = CVmycv.Item[3]
>   CVmycv.MoveBelow
> END
>
> I push the Button1 to move the internal cursor to the first row,
> then when I press Button2 I can see that the command "MoveBelow" works fine.
>
> (Sorry for the double message)
>
> Christian
>   
to traverse trough the items of a ColumnView you could do this:

CVmycv.MoveFirst
WHILE CVmycv.Available
 Print CVmycv.Item.Key 'or whatever else you want to do here
 CVmycv.MoveNext
WEND


but I don't understand what you actually want to do.

Regards
Werner






More information about the User mailing list