Computer Science Canada Having problems with a unit file and database |
Author: | WOIKeller [ Fri Oct 16, 2009 10:01 am ] | ||
Post subject: | Having problems with a unit file and database | ||
The only problem I'm having is that turring can't export a variable from a module. What should I do?
|
Author: | Tony [ Fri Oct 16, 2009 11:49 am ] |
Post subject: | RE:Having problems with a unit file and database |
You can export a function that gives you access to that variable's value. |
Author: | Superskull85 [ Fri Oct 16, 2009 11:32 pm ] |
Post subject: | Re: Having problems with a unit file and database |
You can export a variable from within a module in Turing. However, if you want to change the variable you will have to add "var" in front of the export item to make the variable writable. I don't know why you are getting an error, it may be because of your version of Turing. I used version 4.0.5 for my tests. It is much better to create a procedure/function that changes the variables value though. |
Author: | WOIKeller [ Mon Oct 19, 2009 9:47 am ] |
Post subject: | RE:Having problems with a unit file and database |
Thank you ever so much. I have fixed the array access problem, but as with any program 15 more problems have shown up XD. Thanks for all the help. |