BeginningSFBasic

SwordfishUser.BeginningSFBasic History

Hide minor edits - Show changes to output

Changed lines 1-5 from:
!!!Useful Hints and Tips

'''Module Options'''

Many Swordfish modules are configured at compile time using options. For example,
to:
!!!Module Options

Many Swordfish modules are configured at compile time using options. For example,
Changed lines 7-8 from:
Make sure that the #option is declared before the module is included. If you declare the option after the include file, it will be ignored.
to:

Make sure that the #option is declared '''before the module is included'''. If you declare the option after the include file, it will be ignored.

!!!Strings

When declaring strings, don't forget to allow enough space for the null terminator. For example, if you want to declare a 3 character string, you need to use
=code [= dim MyStr as string(4) =]

If you don't explicitly give a string dimension, Swordfish defaults to 24. That is, 23 characters plus a null terminator.

Added lines 1-10:
!!!Useful Hints and Tips

'''Module Options'''

Many Swordfish modules are configured at compile time using options. For example,
=code [=
#option LCD_RS = PORTE.0
=]
Make sure that the #option is declared before the module is included. If you declare the option after the include file, it will be ignored.