How to create this DIM with STRUCTURE?

Just starting out? Need help? Post your questions and find answers here.
Ralf
Enthusiast
Enthusiast
Posts: 203
Joined: Fri May 30, 2003 1:29 pm
Location: Germany

How to create this DIM with STRUCTURE?

Post 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
Franky
Enthusiast
Enthusiast
Posts: 213
Joined: Sat Apr 26, 2003 2:58 pm

Post by Franky »

Where is the question?


Did you want to know, how to write this?


Dim table.Test(1,80,80)?
Give Up everything but trying!
Ralf
Enthusiast
Enthusiast
Posts: 203
Joined: Fri May 30, 2003 1:29 pm
Location: Germany

Post 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)?
leo1991
New User
New User
Posts: 7
Joined: Tue Feb 24, 2004 7:25 pm

Post by leo1991 »

Code: Select all

table(1,70,70)\Red = bla
?
Ralf
Enthusiast
Enthusiast
Posts: 203
Joined: Fri May 30, 2003 1:29 pm
Location: Germany

Post 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:
Post Reply