Navigation bar
  Start Previous page
 20 of 208 
Next page End  

ZBasic Language Reference
12
ZX Microcontroller Family
Examples
Option StringSize 25
Option StringSize Default
Option Strict
Option Strict [On | Off | Default]
Default: Off
This option directive, supported for BasicX compatibility, enables or disables so-called “strict syntax
checking”.  You can enable strict mode by using Option Strict by itself or by including the keyword
On.  You disable strict syntax checking by using Option Strict Off.  Specifying Option Strict
Default sets the option to the default for the currently selected language.
The implications of strict syntax checking are noted in the description of each affected element but a
summary of the effects is given here.
-
the loop index variable of a For loop has restrictions on lifetime, visibility and accessibility
-
logical operators like Not, And and Or may not be used with signed integral data types
This option has local scope, i.e., it only affects compilation of the module in which the option appears.
Example
Option Strict Off
Option TargetDevice
Option TargetDevice <device-name>
Default: ZX24
Due to differences between the various members of the ZX- series, the compiler needs to know for which
device it should compile the code.  This allows it to generate the correct code for the intended device.  At
present, the supported values for <device-name> are given in the table below.  The device names are
not case sensitive.
ZX24
ZX24a
ZX24p
ZX24n
ZX24r
ZX24s
ZX24x
ZX40
ZX40a
ZX40p
ZX40n
ZX40r
ZX40s
ZX44
ZX44a
ZX44p
ZX44n
ZX44r
ZX44s
ZX32a4
ZX1281
ZX1281n
ZX1280
ZX1280n
ZX128a1
ZX328n
ZX328l
ZX28n
ZX28n
ZX24e
ZX24ae
ZX24pe
ZX24pu
ZX24nu
ZX24ru
ZX24su
ZX24xu
ZX128e
ZX128ne
ZX1281e
ZX1281ne
ZX328nu
Example
Option TargetDevice ZX24a
Option TargetCPU
Option TargetCPU <CPU-type>
Default: ZX24
This option is deprecated, use Option TargetDevice instead.
Previous page Top Next page