Delta Tau Forums
Define and assign a variable on the same time - Printable Version

+- Delta Tau Forums (http://forums.deltatau.com)
+-- Forum: Delta Tau Data Systems (http://forums.deltatau.com/forumdisplay.php?fid=1)
+--- Forum: Power PMAC (http://forums.deltatau.com/forumdisplay.php?fid=2)
+--- Thread: Define and assign a variable on the same time (/showthread.php?tid=18)



Define and assign a variable on the same time - DT-Europe - 08-21-2008

How can we define and assign a variable on the same time.
If we do something like:

Global MyVar 0;

it does not work (download error).

In General, in the IDE project, where can we affect initial values to variables?


RE: Define and assign a variable on the same time - bradp - 08-21-2008

DT-Europe Wrote:How can we define and assign a variable on the same time.
If we do something like:

Global MyVar 0;

it does not work (download error).

In General, in the IDE project, where can we affect initial values to variables?

With the current firmware of July 23rd and our test firmware of August 14th this is not possible. So you can only assign the value after making the declaration.

Global MyVar;
MyVar=0;

In the next firmware this feature will be included. I do not know what date it will have but it will be later than August 22nd 2008. The feature is coming.