[Gambas-user] DIM axbData[1] AS Byte

Benoit Minisini gambas at ...1...
Thu Apr 17 22:43:51 CEST 2008


On jeudi 17 avril 2008, Ron wrote:
> Hi,
>
> PUBLIC SUB Main()
>     DIM axbData[1] AS Byte
> END
>
> Is resulting in this error when run, but compiles ok.
>
> ** INTERNAL ERROR **
> ** VALUE_default: Unknown default type
> ** Program aborting. Sorry! :-(
>
> I know the syntax is wrong, but this looks like a runtime error caused
> by the compiler not checking enough... correct?
>
> Gambas 2.99
>
> Regards,
> Ron.
>

Actually I just forgot a "return" statement, and so the program continues on 
the aborting error routine! You normally can run that code.

I fixed the bug in the revision #1319.

Regards,

-- 
Benoit Minisini




More information about the User mailing list