How do I check multiple items in a TYPE

Blitz3D Forums/Blitz3D Beginners Area/How do I check multiple items in a TYPE

Oh, yeah - that was just an example. I'm using it for developing my GUI so I can declare window data in the same way VB does. eg, main.height, main.visible, etc. :)

Thus I can write programs externally in my own scripting language and the Blitz program is simply an interpreter. Custom functions make this a breeze, etc - CreateWindow(handle,[title$],[x],[y],[width],[height]) to create a window in the GUI which is thereon referred to by the HANDLE in the scripting language. Meanwhile in Blitz it's assigned a xxxxx1.window (module) number which I (or anyone using the scripting language) never need to know.

By using TYPEs, I can call the command "CreateWindow(About)" to automatically create a default-attributed window in the centre of the screen, and then rather than having to know a DIM array number to change data, I can simply do "about.title$="my about box" in my script, or any other changes later on, and the interpreting functions in my Blitz program handle all the heavy stuff. Herein lies the beauty of TYPEs which I never fully understood until about 5 hours ago. They do all the hard work for you. :)

+BlackD