Why "Public Dim myVar As Short"?
type name expected in line 9 in file Global.QObject
...Short
- Code: Select all
Public Dim myVar As Integer
would be right. There is one Integer type only yet (64 bit).
Dim is always needed, because it reflects for beginners the kind of declaration (won't change it for several reasons). I know, of course, that VB6 and KBasic allows to declare a variable just with "Public var As Integer", but this is just another odd of BASIC which has several disadvantages for me/the project (one rule lesser). Hope you will come over it.
The error is
- Code: Select all
= expected in line 9 in file Global.QObject
...As Byte = 1
which means that "As Byte" is to omit, because the const automatically get the right type
- Code: Select all
Public Const RS232 = 1
Check out the manual if you unsure about the syntax.
Type is not supported as in KBasic. The right way would be to create a new code file, which contains several variables, by now. I would like to assist you to get it in Q7Basic terms.
Anyway, I plan to do support for "Type" as known in KBasic for V1.