[Gambas-user] Collections

Pino Zollo pinozollo at ...626...
Sat Jan 16 17:27:01 CET 2010


Il sabato 16 gennaio 2010 12:21:09 gambas-user-request at ...625...t 
ha scritto:
> >               Disp.DisRes.Text = Disp.DisRes.Text & "~~~~~~~~~"
> >             INC i
> >          LOOP
> >          ' CBCommand.Clear
> >          ' CBComm2.Clear
> >          FOR EACH Element IN Lista
> >              
> >               PRINT Lista.Key;; "   ";; Lista[Lista.key][1];; "   ";;
> > Lista[Lista.key][0] PRINT Lista.Key;; "   ";; Element[1];; "   ";;
> > Element[0]
> >
> >               ' SELECT CASE Element[1]
> >               '    CASE "n:s"
> >               '      CBCommand.Add(Lista.Key)
> >               '    CASE "s:n"
> >               '      CBComm2.Add(Lista.Key)
> >               ' END SELECT
> >          NEXT  
> > -----------------------------------------------------
> >
> >  
>
> I look at the code above and wonder abount the first 2 lines.
> Say i is 3 and count is 6. When it loops you get the following:
>     i        count
>     3        6
>     4        5
> end of loop
> because the Pop in the second line reduces count. Is that what you wanted?

Hi Werner,

Sorry for the previous wrong "Object"....

Yes definitively it takes to eliminate the INC i instruction....

The main problems remains....now the 119th string is always printed:
i.e. "  A:n     Returns the list of methods.  "
While the first column, the key, is correct.
-----------------------
fldigi.version_struct     A:n     Returns the list of methods.
fldigi.version_struct     A:n     Returns the list of methods.
fldigi.name     A:n     Returns the list of methods.
fldigi.name     A:n     Returns the list of methods.
fldigi.list     A:n     Returns the list of methods.
fldigi.list     A:n     Returns the list of methods.
-----------------------

Regards

Pino


-- 
Key ID: 0xF6768208 
Key fingerprint = B16D 0A7C 5B29 A334 CE6A  71F6 EAF8 3D88 F676 8208
Key server: hkp://wwwkeys.eu.pgp.net




More information about the User mailing list