Page 1 of 1

HTML Variable Example, Question

Posted: Mon Aug 04, 2008 10:33 am
by seulater
i am messing arround with the HTML Variable Example. I would like to add some of my own variables into the example.
When i change this line:
System tick count: <!--VARIABLE TimeTick/TICKS_PER_SECOND --> seconds
in the index.htm file to:
System tick count: <!--VARIABLE TimeTick --> seconds

It reports corectly, but if i add a new variable like this:
System tick count: <!--VARIABLE tempx --> seconds

I get "error: 'tempx' was not declared in this scope", i have tried defining it as a global variable outside of main, and also tried to place it in the .h files with no luck.

Anyone go any ideas how to acomplish this ?

Re: HTML Variable Example, Question

Posted: Tue Aug 05, 2008 4:17 pm
by rnixon
Did you add the variable to the htmlvar.h file?

Re: HTML Variable Example, Question

Posted: Wed Aug 06, 2008 5:20 am
by seulater
Yes i did, i cant explain it, but when i got home and tried the same thing again it worked just fine.