The difference between import & include
----------------------------------------------
I think it's important to say that a lot of trouble you might be getting from bmx may stem from using:
instead of simply
The samples seem to be rife with it and I assumed (since include wasn't highlighted in my bmx IDE) that this was the new way to include other files. I think a lot of my problems came from this simple misunderstanding.
Dreamora said it best in this topic: http://www.blitzbasic.com/Community/posts.php?topic=42097
Includes: replaces the include line with the source within the file
Import: Links the compiled version of the source with the exe ( especially then needed when you get modules that don't have any source ).
----------------------------------------------
I think it's important to say that a lot of trouble you might be getting from bmx may stem from using:
import "something.bmx"
instead of simply
include "something.bmx"
The samples seem to be rife with it and I assumed (since include wasn't highlighted in my bmx IDE) that this was the new way to include other files. I think a lot of my problems came from this simple misunderstanding.
Dreamora said it best in this topic: http://www.blitzbasic.com/Community/posts.php?topic=42097
Includes: replaces the include line with the source within the file
Import: Links the compiled version of the source with the exe ( especially then needed when you get modules that don't have any source ).