Problems with custom type variables as field

Blitz3D Forums/Blitz3D Programming/Problems with custom type variables as field

Adam Bossy(Posted 2004) [#1]
I can't seem to figure out a way to get the data I'm looking for. I need to get the information in the "Image" field from the worldObj type, while looping through each object in Layer1. There seems to be certain syntax I'm missing.

The problem is in the for...each loop... I can't seem to use "l\obj\img". Does anyone know how this is possible?

Type worldObj
	Field Image, x, y, sizeX, sizeY, Layer, File$
	Field Collision, id
End Type

Type Layer1
	Field obj.worldObj
End Type

For l.Layer1 = Each Layer1
	If img = l\obj\img Then
		Delete l
		Return
	End If
Next



BlitzSupport(Posted 2004) [#2]
Try l\obj\Image instead of \img...


Adam Bossy(Posted 2004) [#3]
You've got to be kidding me. Doh!

Thanks BlitzSupport!