On Wed, 26 Jun 2013, Keith Clark wrote:
> Does Gambas support read/data commands like the following for loading a 
> simple array with fixed values?
> 
> for t=0 to 4
>      for x = 0 to 4
>          read v(t,x)
>      next x
> next t
> 
> data 1,2,3,4,5,1,2,3,4,5,1,2,3,4,5......
> 
> Maybe I'm just not finding it?
> 

I don't know what you want to do, actually, and your snippet does not
resemble Gambas at all... Maybe you want to access elements of a 2D array
where t is the row and x is the column? So if v is an Integer[][], then you
need to do:

For t = 0 To 4
  For x = 0 To 4
    Print v[t][x]
  Next
Next

Regards,
Tobi

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to