Unfortunately, dbp doesn't support arrays within types natively. If you are really interested in this feature, you'd probably like to know that i'm currently working on a preprocessor for dbp that will allow you to have arrays within classes. Classes are basically types that allow you to have functions embedded within them.
So, with my preprocessor, you would be able to do something like this:
class class1
a as integer
constructor new()
endconstructor
method a()
exitmethod a
endmethod 0
method seta(new as integer)
a=new
endmethod
endclass
class class2
b as integer
objects(255) as class1
constructor new()
for x=0 to 255
objects(x)=class1.new()
next x
endconstructor
method b()
exitmethod b
endmethod 0
method setb(new as integer)
b=new
endmethod
method objects(x as integer)
exitmethod objects(x)
endmethod 0
endclass
`make and initialize an object
myObj as c2
myObj=c2.new()
`instead of 'myObj.b=12' you do:
myObj.setb(12)
`instead of 'print myObj.b' you do:
print myObj.b()
`array access
myObj.objects(index).seta(9)
print myObj.objects(index).a()
wait key
Notice everything is done via methods (functions within classes); you cannot access members by themselves, you must return them or set them by way of methods.
Who needs a signature?