[Gambas-user] Collections

nospam.nospam.nospam at ...626... nospam.nospam.nospam at ...626...
Sat Jan 16 11:29:33 CET 2010


2010/1/16 Pino Zollo <pinozollo at ...626...>:

> The two print statements print exactly the same thing...the Lista.key is correct and all different, but the
> other ( ; Element[1];; "   ";; Element[0] ) print always the last element added to the structure.

First you need to sort out if you have a problem in your debug line.

> DEBUG Lista.Count;; Lista[myStruc.Value(1)][1];; "   ";; Lista[myStruc.Value(1)][0]

Put a breakpoint on this line:

> Disp.DisRes.Text = Disp.DisRes.Text & "~~~~~~~~~"

Then inspect myStruc in the IDE.

If the inspection of myStruc shows the correct values then what you
have in the debug line is wrong.




More information about the User mailing list