rs
Sent: Thu, 5 May 2011 19:30:35 +0200
Subject: Re: [Gambas-user] Run-time bug
> > ' Gambas class file
> >
> > PRIVATE test AS String[30, 30]
> >
> >
> > PUBLIC SUB my_test()
> >
> > test = ["Voice", "Logon"] '<
> ' Gambas class file
>
> PRIVATE test AS String[30, 30]
>
>
> PUBLIC SUB my_test()
>
> test = ["Voice", "Logon"] '<---If I REM this, there is no runtime error
> on next line test[0, 1] = "Logon" '<---Runtime error: Bad Number of
> Dimensions
>
> PRINT test.count
>
> END
>
> Gamba
Hi!
Try to use:
test[0].Add("Logon")
It should work then
On 05/05/2011, at 00:30, nando wrote:
> ' Gambas class file
>
> PRIVATE test AS String[30, 30]
>
>
> PUBLIC SUB my_test()
>
> test = ["Voice", "Logon"] '<---If I REM this, there is no runtime error on
> next line
> test[0, 1] = "Logon"
' Gambas class file
PRIVATE test AS String[30, 30]
PUBLIC SUB my_test()
test = ["Voice", "Logon"] '<---If I REM this, there is no runtime error on
next line
test[0, 1] = "Logon" '<---Runtime error: Bad Number of Dimensions
PRINT test.count
END
Gambas2
-Fernando
--