HTML Variable Example, Question

Discussion to talk about software related topics only.
Post Reply
seulater
Posts: 445
Joined: Fri Apr 25, 2008 5:26 am

HTML Variable Example, Question

Post 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 ?
rnixon
Posts: 833
Joined: Thu Apr 24, 2008 3:59 pm

Re: HTML Variable Example, Question

Post by rnixon »

Did you add the variable to the htmlvar.h file?
seulater
Posts: 445
Joined: Fri Apr 25, 2008 5:26 am

Re: HTML Variable Example, Question

Post by seulater »

Yes i did, i cant explain it, but when i got home and tried the same thing again it worked just fine.
Post Reply