[Gambas-user] Getting Gambas up to speed.

Laurent Carlier lordheavy at ...512...
Tue Jul 5 23:34:36 CEST 2005


PV a écrit :
> On 05/07/2005 22:15, Laurent Carlier wrote:
> 
>> small test program :
>> FOR ... NEXT :1.337913000025
>> DO ... LOOP UNTIL :1.499999780208E-5
>> DO WHILE ... LOOP :2.90982099995
>> WHILE ... WEND :2.893097999971
>>
>> DO ... LOOP UNTIL -> wow !
>>
> 
> There's an error in your test program: in the do...loop until section,
> the loop is executed only once since the j < value condition evaluates
> to true on the first run.
> 
> My results (after correction):
> 
> FOR ... NEXT :1.546652000048
> DO ... LOOP UNTIL :2.545786999981
> DO WHILE ... LOOP :3.030274000019
> WHILE ... WEND :2.942573999986
> 
> Ciao,
> Piero
> 

Thanks !
the error :   LOOP UNTIL j < value

it must be :   LOOP UNTIL j > value

Sorry,

-- 

Laurent Carlier
jabber : LordHeavy at ...943...




More information about the User mailing list