[Gambas-user] unknown identifer: Array ??? bug?

Lorenzo Tejera fidojones at ...805...
Mon Mar 6 09:41:57 CET 2006


Hi I'm more fresh again, now it works removing word Array and put []
thanks, gambasdoc must be update.

lorenzo

El Lun, 6 de Marzo de 2006, 2:25, ron escribió:
> On Monday 06 March 2006 00:00, Lorenzo Tejera wrote:
>
>> Perhaps night confuse me, but I probed the gambasdoc example in version
>>  1.9.25 and 1.9.26
>>
>>
>> PRINT Object.Type(Array(2.4, 3, 3.2))
>>
>>
>> With this result as
>>
>>
>> unknown identifer: Array ???
>>
>> so Array not works in the last version ? is a bug?
>>
>> I need to sleep more
>> lorenzo
>>
>
> You got answer from Benoit:
>
>
> Array() was removed in the last development version. Use '[' & ']'.
>
>
> @Benoit:
> The Array() construction is more basic as the java '[' & ']' version.
> Now the documentation is, i'm afraid, wrong on many places in the wiki.
>
>
> -----------------------
>
>> DIM myBla AS String[]
>>
>>
>>  myBla = Array["0", "1", "2", "3"]
>>
>>
>> with [] not work , gambas 1.9.26 , unknown identifier array
>>
>> regards
>>
>> lorenzo
>
> Read carefull after comma ->> _unknown identifier array_
> The interpreter does not know array with '(' or '['
>
>
> ----------------------
>
>> Perhaps something like that :-)
>>
>>
>> PUBLIC SUB Main()
>>
>>
>>   DIM toto AS String[]
>>
>>   toto = ["ee", "aa", "bb"]
>>
>>   PRINT Object.Type(["ee", "aa", "bb"])
>>
>> END
>>
>
> you have got that message because you answer
>
>> Perhaps night confuse me, but I probed the gambasdoc example in version
>>  1.9.25 and 1.9.26
>>
>>
>>    PRINT Object.Type(Array(2.4, 3, 3.2))
>>
>>
>> With this result as
>>
>>
>> unknown identifer: Array ???
>>
>> so Array not works in the last version ? is a bug?
>>
>> I need to sleep more
>> lorenzo
>
> Why are you using       ->> PRINT Object.Type(Array("ee", "aa", "bb"))
> as the example told you ->> PRINT Object.Type(["ee", "aa", "bb"])
>
> and still no light ->> > unknown identifer: Array ??? note: you using the
> (latest) development version.
>
>
> Try exact the example from Laurent Carlier, that should work.
>
>
> Sleep well and tomorrow fresh again :)
>
>
> Ron
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language that extends applications into web and mobile media. Attend the
> live webcast and join the prime developer group breaking into this new
> coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
>





More information about the User mailing list