handles and variables

Blitz3D Forums/Blitz3D Beginners Area/handles and variables

I am not sure what the effect is of the following code.

image_handle=LoadImage("image.bmp")
variable=image_handle


What exactly does 'variable' now represent? does it act like a hanlde of a handle and 'point' to the image, or does it just represent the number which the handle is defined as.

According to the debugger, and
Print variable
it should jus be a number, so how come

DrawImage variable,0,0 

works???


This is quite important to me, as I will need to be able to go through all my 3D entities and select some of them. To do this, I need to be able to assign a variable which will represent the selected entity.