Oxygen Basic
Programming => Problems & Solutions => Topic started by: chrisc on March 22, 2018, 06:11:59 AM
-
in PB there is a STRING$() function which
Return a string consisting of multiple copies of the specified character.
Syntax
s$ = STRING$(Count&, Character%)
example
A$ = STRING$(8, "0") ' Results A$ = "00000000"
Is there an equivalent function in O2 ?
-
i found it, STRING$() becomes STRING()
it is the same
-
With Script BASIC, the $ reference for strings and string functions are optional. It would be nice if O2 followed suit.
LET and line numbers (line labels) are allowed if you think they are needed.
-
Hi John,
$ endings are allowed but ignored.
let is suported, but not PB's object syntax.
line numbers are supported as labels
-
Sounds like O2 is already SB compatible. ;)