Here you changed it to one dimensional array:
Text = ["Just", "test"]

So that Text[0] = "Just" and Text[1] = "test".

Jussi



On Thu, May 5, 2011 at 18:59, nando <nand...@nothingsimple.com> wrote:

> The question really is how
>  PRINT Text[i]
> works when it is DIM'd as a 4D array
>
>
> ---------- Original Message -----------
> From: Fabien Bodard <gambas...@gmail.com>
> To: nand...@nothingsimple.com, mailing list for gambas users
> <gambas-user@lists.sourceforge.net>
> Sent: Thu, 5 May 2011 12:37:33 +0200
> Subject: Re: [Gambas-user] Can someone explain why this works?
>
> > because text.max is not text.count !
> >
> > http://gambasdoc.org/help/comp/gb/array/max?v3
> >
> > 2011/5/5 nando <nand...@nothingsimple.com>:
> > > 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
> > >
> > >
> > >
> ------------------------------------------------------------------------------
> > > 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@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > >
> >
> > --
> > Fabien Bodard
> >
> >
> ------------------------------------------------------------------------------
> > 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@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> ------- End of Original Message -------
>
>
>
> ------------------------------------------------------------------------------
> 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@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
------------------------------------------------------------------------------
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to