Start Back Next End
  
ZBasic Language Reference
12
ZBasic Microcontrollers
This option has local scope, i.e., it only affects string variables defined in the same module in which the
option appears.
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 TargetCPU
Option TargetCPU <CPU-type>
Default: ZX24
This option has been deprecated.  Use Option TargetDevice instead.
Option TargetDevice
Option TargetDevice <device-name>
Default: ZX24
Due to differences between the various target devices, the compiler needs to know for which device it
should compile the code.  A complete list of supported device names is given in Appendix B.
Example
Option TargetDevice ZX24a
Option DeviceParameter
Option DeviceParameter <parameter-name> <parameter-value>
Default: see text
This directive allows specifying a device configuration parameter usually for a generic target device
(however, some can be used for native mode ZX devices).  The <parameter-name> element has the form
of an identifier (beginning with an alphabetic character and containing only alphabetic and numeric
characters).  The <parameter-value> element may be in the form of an identifier, a quoted string, or a
numeric value depending on the particular parameter.  See Section 5.3 for more information on device
configuration parameters.
Previous page Top Next page