Sign in

username:

password:



Not a member?

Search basicx



Search tips

Subscribe to basicx



basicx by Keywords

Accelerometer | ADC | ADXL | Adxl20 | AVR | BasicStamp | BX-35 | BX28 | BX35 | COM3 | Compiler | Downloader | EEPROM | Electromagnet | GetADC | GP2D1 | GPS | I2C | IDE | Keypad | LCD | LCD+ | MIDI | Motors | Multitasking | Netmedia | Networking | PCB | PID | PlaySound | PWM | Relays | RTC | Servo | ShiftOut | SitePlayer | SPI | Stack | Timer | USB

Ads

Discussion Groups

Discussion forum for the BasicX family of microcontroller chips.

Timer() - Paul J. Csonka - Dec 31 19:05:00 2000

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





(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )


Re: Timer() - Tony Brenke - Jan 1 1:47:00 2001

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

__________________________________________________






(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

Re: Timer() - Paul J. Csonka - Jan 2 12:43:00 2001


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




(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )