[Gambas-user] Run-time bug

nando nando_f at ...951...
Thu May 5 20:01:57 CEST 2011


Thanks Benoit,
I was still thinking 'static'
Thinking 'dynamic' it makes sense
I will make this adjustment in my brain.
Very much appreciated.
-Fernando


---------- Original Message -----------
From: Benoît Minisini <gambas at ...1...>
To: nando_f at ...951..., mailing list for gambas users
<gambas-user at lists.sourceforge.net>
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"]  '<---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
> >
> 
> See my answer about "can someone explain why this works?" to understand what 
> happens.
> 
> Regards,
> 
> -- 
> Benoît Minisini
> 
> ------------------------------------------------------------------------------
> WhatsUp Gold - Download Free Network Management Software
> The most intuitive, comprehensive, and cost-effective network 
> management toolset available today.  Delivers lowest initial 
> acquisition cost and overall TCO of any competing solution.
> http://p.sf.net/sfu/whatsupgold-sd
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
------- End of Original Message -------





More information about the User mailing list