[Gambas-user] Can someone explain why this works?

Jussi Lahtinen jussi.lahtinen at ...626...
Thu May 5 19:22:37 CEST 2011


Shouldn't the error message then come from this line;
Text = ["Just", "test"] ?

Jussi


2011/5/5 Benoît Minisini <gambas at ...1...>

> > Benoit,
> >
> > Can you explain why this works and the reasoning behind it?
> > I would think there would be dimension issues on some lines
> >
> >
> > DIM i AS Integer, Text AS String[4, 4, 4, 4]
> >
> > Text = ["Just", "test"]        '<--how to load Text with multi-dimension
> > text
> >
> > FOR i = 0 TO Text.Max
> >     PRINT Text[i]              '<--why does this not show bad dimensions
> > error? NEXT
> >
> >
> > -Fernando
> >
>
> Mmm, it shouldn't. It should raise an error instead. It's a bug.
>
> --
> 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
>



More information about the User mailing list