|
|
| Author |
Message |
mdown
Joined: 03 Feb 2006
Posts: 62
Location: Dallas, Texas
|
|
Posted: 15 July 2006, 20:52 PM Post subject: ZX24 Persistant Variables |
|
|
I am trying to use persistant variables for the first time and defined 3 variables as specified in the manual, however the zbasic compiler barfs on the definitions. Whats wrong?
Code:
| Code: | Option Explicit
option signon off
option targetcpu zx24
option pin26 zxOutputHigh 'PhonePwr
option pin25 zxOutputLow 'StatLed
option pin9 zxInputPullup 'GSMRxPin
option pin5 zxInputPullup 'GPSRxPin
'option pin8 zxOutputHigh 'DTR
'NVRAM VARS
dim RunLevel as PersistantInteger
dim AlarmLevel as PersistantInteger
dim CallHomeInt as PersistantInteger |
Compiler:
| Code: | STU v2_7_9 ZX.bas:12: Error: "PersistantInteger" is not a known type, structure or enumeration
STU v2_7_9 ZX.bas:13: Error: "PersistantInteger" is not a known type, structure or enumeration
STU v2_7_9 ZX.bas:14: Error: "PersistantInteger" is not a known type, structure or enumeration
3 errors.
>Exit code: 1
|
-Mike |
|
| Back to top |
|
 |
dkinzer Site Admin
Joined: 03 Sep 2005
Posts: 2499
Location: Portland, OR
|
|
Posted: 15 July 2006, 20:59 PM Post subject: |
|
|
| Code: | | dim RunLevel as PersistantInteger |
It' just a minor problem with spelling - PersistentInteger. |
|
| Back to top |
|
 |
mdown
Joined: 03 Feb 2006
Posts: 62
Location: Dallas, Texas
|
|
Posted: 15 July 2006, 21:03 PM Post subject: |
|
|
Thats what happens when your sleepy.
-Mike |
|
| Back to top |
|
 |
|