While investigating string functions for an LCD based Dice Roller project, I came across 2 errors in Strings.
'
Error 1:
this BT based 'Help'; topic [STR] example fails:: "
bst = 123 + "test123"
bst will remain empty.... --BUT it will work if the 'test123' part is FIRST!!!"
'
Error 2:
' the following line is copied from the BT based 'Help'; topic [String Functions]
' it fails to compile
'ast = ast + "abcd" + str(2 + 44 / 23) + str(len(cst)) + "zcxv" + chr(13) + "more stuff" + bst
I did test each of the "STR(functions)" individually and printed out their results -- see the .jpgProgramming Flash 1114...
ast = ast + "abcd" + str(2 + 44 / 23) + str(len(cst)) + "zcxv" + chr(13) + "more stuff" + bst
-ERROR C:/Users/Olzeke51/Documents/Coridium/DICEer/STRING_VARS_errs.bas: 43: Expected Operand
ast = ast + "abcd" + str(2 + 44 / 23) + str(len(cst)) + "zcxv" + chr(13) + "more stuff" + bst
-ERROR C:/Users/Olzeke51/Documents/Coridium/DICEer/STRING_VARS_errs.bas: 43: expected expression
ast = ast + "abcd" + str(2 + 44 / 23) + str(len(cst)) + "zcxv" + chr(13) + "more stuff" + bst
-First ERROR at line :43
'
the attached files :: the .jpg shows Error 1 only - as I commented out the "Error 2" statement.
:: the .bas is my program with Error 2 enabled (and 'bst' is still empty
*
*