Eval() statements

Blitz3D Forums/Blitz3D Programming/Eval() statements

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hi folks,

I think investigating the use of types would be useful. For example you could then have something like:

Type beasty
  field e
  field r,g,b
end type

global b.beasty

for i = 1 to 100
  b = new beasty
  b\e = createsphere()
next

for b = each beasty
  b\r = rnd(255)
  b\g = rnd(255)
  b\b = rnd(255)
next


Is that what you're trying to acheive?

Later,

Jes