Author Topic: 2 Dimensional array of type?  (Read 1424 times)

Offline FutureCow

  • HelpEditor
  • Prof. Inline
  • ******
  • Posts: 680
    • View Profile
2 Dimensional array of type?
« on: 2009-May-22 »
I'm trying to do the following

Code: GLBasic [Select]
type testtype
   a
   b
end type

dim myarray[][] as testtype

But all the ways I've tried keep having a syntax error. Anyone know how I can create a 2 dimensional array of a type structure?
« Last Edit: 2009-May-22 by FutureCow »

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10695
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: 2 Dimensional array of type?
« Reply #1 on: 2009-May-22 »
LOCAL myarray[] as test
DIM myarray[125][278]

Offline FutureCow

  • HelpEditor
  • Prof. Inline
  • ******
  • Posts: 680
    • View Profile
Re: 2 Dimensional array of type?
« Reply #2 on: 2009-May-22 »
Thanks for the quick reply Gernot!