Page 1 of 1

version variable

Posted: Thu Aug 25, 2005 4:56 pm
by rassie
I am having problems getting the version variable to work. The documentation says "just enter the name of your version variable in the form "unit.var". This variable *MUST* be a string variable or a string typed constant."
I have written the following:

Code: Select all

const
  version : String = '1.3.0';
and entered version as the unit.var value in the MadExcept settings.
But when I compile I always have a message from MadExcept saying "[madExcept] The specified version variable was not found!"

How should I define my version variable for madExcept to find it?

Posted: Thu Aug 25, 2005 6:01 pm
by madshi
What exactly did you enter in the "unit.var value" setting?

Posted: Thu Aug 25, 2005 6:14 pm
by rassie
I enter the name of the constant, ie. 'version'.

Posted: Thu Aug 25, 2005 6:47 pm
by madshi
You have to add the name of the unit, too... :D

That's why it's "unit.var". You have to enter the name of the unit first, then a dot, then the name of the variable.

Posted: Thu Aug 25, 2005 7:25 pm
by rassie
Yes of course that was it.
Thank you very much.