just don't forget when you add multiple array, think to add new array
as only the memory address is added to the collection , not the array
content. In other case all the array in the collection link to the
same one
dim mycol as NEW collection
dim i as integer
dim aText as string[]
For i = 0 to
On 17/01/10 00:27, Pino Zollo wrote:
> Il sabato 16 gennaio 2010 12:21:09 gambas-user-requ...@lists.sourceforge.net
> ha scritto:
>
>>> Disp.DisRes.Text = Disp.DisRes.Text & "~"
>>> INC i
>>> LOOP
>>> ' CBCommand.Clear
>>> ' CBComm2.C
Il sabato 16 gennaio 2010 12:21:09 gambas-user-requ...@lists.sourceforge.net
ha scritto:
> > Disp.DisRes.Text = Disp.DisRes.Text & "~"
> > INC i
> > LOOP
> > ' CBCommand.Clear
> > ' CBComm2.Clear
> > FOR EACH Element IN Lista
>
Il sabato 16 gennaio 2010 08:25:56 hai scritto:
> Salut Pino,
>
> my problem with your problem is:
> That is just a piece of code, I can only run and debug, if I invent ALL
> the rest.
>
> And so,every test will say nothing(if it is not a typo in that piece
> code).
>
> So please sent always a full
On 16/01/10 18:23, Pino Zollo wrote:
> Il venerdì 15 gennaio 2010 17:39:14 hai scritto:
>
>> Am Freitag, den 15.01.2010, 16:04 -0300 schrieb Pino Zollo:
>>
>>> DIM Dict AS NEW Collection
>>> DIM Element AS String
>>>
>>> Dict["Blue"] = 3
>>> Dict["Red"] = 1
>>> Dict["Green"] = 2
>>>
>>> FOR
Am Samstag, den 16.01.2010, 07:23 -0300 schrieb Pino Zollo:
> Il venerdì 15 gennaio 2010 17:39:14 hai scritto:
> > Am Freitag, den 15.01.2010, 16:04 -0300 schrieb Pino Zollo:
> > > DIM Dict AS NEW Collection
> > > DIM Element AS String
> > >
> > > Dict["Blue"] = 3
> > > Dict["Red"] = 1
> > > Dict["
2010/1/16 Pino Zollo :
> 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 d
Il venerdì 15 gennaio 2010 17:39:14 hai scritto:
> Am Freitag, den 15.01.2010, 16:04 -0300 schrieb Pino Zollo:
> > DIM Dict AS NEW Collection
> > DIM Element AS String
> >
> > Dict["Blue"] = 3
> > Dict["Red"] = 1
> > Dict["Green"] = 2
> >
> > FOR EACH Element IN Dict
> > PRINT Element;
> > NEXT
>
Am Freitag, den 15.01.2010, 16:04 -0300 schrieb Pino Zollo:
> DIM Dict AS NEW Collection
> DIM Element AS String
>
> Dict["Blue"] = 3
> Dict["Red"] = 1
> Dict["Green"] = 2
>
> FOR EACH Element IN Dict
> PRINT Element;
> NEXT
>
Salut,
did you ever more then run that code ? debug ? or looked w
Hi,
please can somebody explain the following from the documentation:
DIM Dict AS NEW Collection
DIM Element AS String
Dict["Blue"] = 3
Dict["Red"] = 1
Dict["Green"] = 2
FOR EACH Element IN Dict
PRINT Element;
NEXT
3 1 2
--
3,1 and 2 are Integer, so why Element is a String
10 matches
Mail list logo