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 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user