So, if you had 10 sourcecode files (file1.bmx, file2.bmx, ...) and each file needs a function that stored in yet another file (file11.bmx), then all 10 files should Import "File11.bmx"?
If your main file (Main.bmx) Imports all 10 files (file1.bmx ... file10.bmx) and doesn't use that function by itself, then there's no need to Import file11.bmx in the main file?
So should this be the correct way of using Import?
Don't mind the simple functions and methods, it's just an example if I get the idea for using Import correctly.
Only 3 files used, instead of 10:
Is this correct?
The main file doesn't call the function "MyPrint" directly, so it doesn't have to Import it?
If your main file (Main.bmx) Imports all 10 files (file1.bmx ... file10.bmx) and doesn't use that function by itself, then there's no need to Import file11.bmx in the main file?
So should this be the correct way of using Import?
Don't mind the simple functions and methods, it's just an example if I get the idea for using Import correctly.
Only 3 files used, instead of 10:
' File1.bmx Import "MyPrint.bmx" Type Blah1 Method New() MyPrint("I'm stupid") End Method End Type ' File2.bmx Import "MyPrint.bmx" Type Blah2 Method New() MyPrint("I'm crazy") End Method End Type ' File3.bmx Import "MyPrint.bmx" Type Blah3 Method New() MyPrint("I'm still an idiot") End Method End Type ' MyPrint.bmx Function MyPrint(TempText$) Print TempText$ End Function ' Main.bmx Import "File1.bmx" Import "File2.bmx" Import "File3.bmx" NewBlah1:Blah1 = New Blah1 NewBlah2:Blah2 = New Blah2 NewBlah3:Blah3 = New Blah3
Is this correct?
The main file doesn't call the function "MyPrint" directly, so it doesn't have to Import it?