First of all i would like to say that yes i have infact read over the module tutorial. Infact my question was first posted there. However, since someone mentioned that it should be put here along with the fact that i havn't found a workable solution to it yet, i have made a new post. I have also searched before posting this.
Now as for Turing experiance, i have basic experiance with it and i would call myself an intermediate programmer. I do have alot of experiance with other languages such as VB and C++
Now my problem:
Lets say i have two modules. How would i go about importing them into my program? It would probably make sense to do soemthing like:
code: |
import (modulename in "filename")
import (modulename2 in "filename2") |
However this generates an error
This occurs whenever i import more that two modules. They do not even have to by my own. I also tried to import "GUI" but it also failed when it was second on the list.
I then tried putting GUI first, and the error came up but this time on the second "import" which was my file that i had created.
Some help would be appreciated.
The error is generated at compile.
The compiler highlights the second word "import" alone
The error message says "syntax error at import)
here is the exact code:
code: |
import (DragStrip in "dragstripModule.tu")
import GUI |
this generates an error for the second import (the one for GUI)
when flipped like so:
code: |
import GUI
import (DragStrip in "dragstripModule.tu") |
the error occurs on the second import again (this time my own module)
Now Delos was kind enough to offer a solution:
Quote:
You might get a warning popping up there. Import the entire module instead, safer. Easy, wasn't that.
However, if i do something like this:
code: |
import "dragstripModule.tu"
import GUI |
then i get the same error on the second import. If I put the GUI import first, the error is still on the second import regardless.
Thank you in advance for your help
EDIT: i should also add that its not just the GUI and that extra file which cause errors.
If I use two custom files, the same error comes on the second import statement. If I use two turing Modules, i get the same error again also.