Page 1 of 1

ZX24 Persistant Variables

Posted: 15 July 2006, 13:52 PM
by mdown
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: Select all

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: Select all

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

Posted: 15 July 2006, 13:59 PM
by dkinzer

Code: Select all

dim RunLevel as PersistantInteger

It' just a minor problem with spelling - PersistentInteger.

Posted: 15 July 2006, 14:03 PM
by mdown
Thats what happens when your sleepy.

-Mike