After a more accurate control I discovered that the last record was not
included with red color. But when I put the LOOP up to rsThesi.Count it shows
up the same old error.
so I put just after the LOOP the line :
change_bgcolor("Label" & CInt(rsThesi!thesi))
AND everything is OK at last !!
Here's the code with the extra line:
DO WHILE rsThesi.Index < rsThesi.Count - 1
change_bgcolor("Label" & CInt(rsThesi!thesi))
rsThesi.MoveNext()
LOOP
change_bgcolor("Label" & CInt(rsThesi!thesi))
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user