Discussion forum for the BasicX family of microcontroller chips.
|
Good afternoon, I would like to use the Timer on a bx-24. In a new project, F=Timer works perfectly. If I use the exact same code in another (much longer) file, I get a syntax error when compiling. Both have F as a single; all I need is dim stop as single ... stop=timer What could be a cause of this error? Thank you for your time, have a nice evening, Paul |
|
|
|
there can be many causes to your problem. the way to narow it down is to post your code so that we can see it and give you sugestions from there. --- "Paul J. Csonka" <> wrote: > Good afternoon, > > I would like to use the Timer on a bx-24. > In a new project, F=Timer works perfectly. > > If I use the exact same code in another (much longer) file, I get > a syntax error when compiling. > Both have F as a single; all I need is > > dim stop as single > ... > stop=timer > What could be a cause of this error? > Thank you for your time, have a nice evening, > Paul > -------------------------- eGroups Sponsor ===== Tony Brenke North Tacoma, WA __________________________________________________ |
|
|
|
Woops, here was the cause of my error, found yesterday: I named another module Timer accidentally instead of Timers. I didn't bother to check the name again, as I intended the S on the end. Of course I get a syntax error when using Timer(). Thanks Tony for your reply, Paul |