?418
Current value of ERR
If this could be increased to a 32 bit number it would enable the setting of an error code compatible with windows error codes.
For instance, being able to pass windows or DirectX error codes to the error handler.
eg
Code: SYS D3DXCreateSprite%, pDevice%, ^ISprite% TO R%
IF R% THEN ERROR 100,"Can't Create Sprite Object"
would become
Code: SYS D3DXCreateSprite%, pDevice%, ^ISprite% TO R%
IF R% THEN ERROR R%,"Can't Create Sprite Object"
and the error code could query the ERR value for the error generate.
Michael