String expressions
Posted: Thu Apr 02, 2015 11:24 pm
>from help line
Armbasic[9.34h]
Welcome to ARMbasic Kernel[7.43] Copyright 2008, Coridium Corp.
for the ARMmite
Programming Flash 2103...
MyString = "My Integer is " & Str(MyInteger) & "mV"
-ERROR C:/Users/Richard/Documents/Coridium/TestSTR.bas: 9: expected comparison operator, found end of line
MyString = "My Integer is " & Str(MyInteger) & "mV"
-ERROR C:/Users/Richard/Documents/Coridium/TestSTR.bas: 9: Expected Operand, found "mV"
MyString = "My Integer is " & Str(MyInteger) & "mV"
-ERROR C:/Users/Richard/Documents/Coridium/TestSTR.bas: 9: expected expression, found & "mV"
MyString = "My Integer is " & Str(MyInteger) & "mV"
-First ERROR at line :9
_______________________________________________________________________________
If you remove the '& "mV' from the concatenation the error disappears and the test program runs correctly
Am I doing something stupid ?
Armbasic[9.34h]
Welcome to ARMbasic Kernel[7.43] Copyright 2008, Coridium Corp.
for the ARMmite
Programming Flash 2103...
MyString = "My Integer is " & Str(MyInteger) & "mV"
-ERROR C:/Users/Richard/Documents/Coridium/TestSTR.bas: 9: expected comparison operator, found end of line
MyString = "My Integer is " & Str(MyInteger) & "mV"
-ERROR C:/Users/Richard/Documents/Coridium/TestSTR.bas: 9: Expected Operand, found "mV"
MyString = "My Integer is " & Str(MyInteger) & "mV"
-ERROR C:/Users/Richard/Documents/Coridium/TestSTR.bas: 9: expected expression, found & "mV"
MyString = "My Integer is " & Str(MyInteger) & "mV"
-First ERROR at line :9
_______________________________________________________________________________
If you remove the '& "mV' from the concatenation the error disappears and the test program runs correctly
Am I doing something stupid ?