Page 1 of 1

How to create this DIM with STRUCTURE?

Posted: Thu Mar 24, 2005 9:07 pm
by Ralf
at the moment i have something like:

Code: Select all

DIM table1_R(80,80)
DIM table1_G(80,80)
DIM table1_B(80,80)

DIM table2_R(80,80)
DIM table2_G(80,80)
DIM table2_B(80,80)
...
this isnt really nice for my handling. first i want to convert this something like: choose table number the 80,80 fields.

DIM table_r[number],(80,80)
DIM table_g[number],(80,80)
DIM table_b[number],(80,80)

i think i can do this like:

DIM table_r(number,80,80) !?
DIM table_g(number,80,80) !?
DIM table_b(number,80,80) !?

now i can change the table number i want to use but how can i implent this structure into the DIM like:

STRUCTURE Test
red.b
green.b
blue.b
ENDSTUCTURE


to use later something like:

table(number,80,80)/red = 0
table(number,80,80)/green = 0
table(number,80,80)/blue = 255

Posted: Thu Mar 24, 2005 9:11 pm
by Franky
Where is the question?


Did you want to know, how to write this?


Dim table.Test(1,80,80)?

Posted: Thu Mar 24, 2005 9:16 pm
by Ralf
Franky wrote:Where is the question?


Did you want to know, how to write this?


Dim table.Test(1,80,80)?
yes!

just table.Test(1,80,80) would work?

how to read and write into red, green, blue (structure)?

Posted: Thu Mar 24, 2005 9:52 pm
by leo1991

Code: Select all

table(1,70,70)\Red = bla
?

Posted: Thu Mar 24, 2005 9:55 pm
by Ralf
leo1991 wrote:

Code: Select all

table(1,70,70)\Red = bla
?
oh... thanks...
sorry, maybe i am living atm in another world :roll: