newbie question about alias

Coding and general discussion relating to the compiler

Moderators: David Barker, Jerry Messina

Post Reply
Luciano
Posts: 13
Joined: Fri Feb 12, 2010 2:00 pm

newbie question about alias

Post by Luciano » Fri Feb 12, 2010 2:28 pm

HI
I am new to to SF and just used for the first time the full version. I am coming from PDS.

I always have an error when trying to compile this instruction (copied from a SF code written by Steve)

Dim Timer As TMR1L. As Word

no matter if I remove the spaces in any combination

any suggestion?
mant thanks
Luciano

rmteo
Posts: 237
Joined: Fri Feb 29, 2008 7:02 pm
Location: Colorado, USA

Post by rmteo » Fri Feb 12, 2010 2:45 pm

Remove the space between "As" and "Word"

Code: Select all

Dim Timer As TMR1L.AsWord

Luciano
Posts: 13
Joined: Fri Feb 12, 2010 2:00 pm

Post by Luciano » Fri Feb 12, 2010 2:56 pm

you are right! that passed the compiler (even if the bold disappeared after removing the spaces).
thank you!
Luciano

rmteo
Posts: 237
Joined: Fri Feb 29, 2008 7:02 pm
Location: Colorado, USA

Post by rmteo » Fri Feb 12, 2010 3:13 pm

It is documented in the manual. You can download it here http://www.sfcompiler.co.uk/swordfish/d ... umentation

Post Reply