Some are working fine, others are throwing up compiler error messages. If, for example, I do:
Code: Select all
Const InitPages(6) As String = ( " Some Text ", "Some more Text",
"Texting, Texting", "Blah, Blah, Blah",
"Firmware Version", Ver )
LCD.Write(InitPages(0))
Code: Select all
Const TxtAlarmFaultAlarm = #127+" Yes "+#4+#5+#6+#7+" "+#126
LCD.Write(TxtAlarmFaultAlarm)
If I try and force it to recognise the Const as a string by using
Code: Select all
Const TxtAlarmFaultAlarm as String
Code: Select all
Const TxtAlarmFaultAlarm as String(17)
Then I get an 'Invalid constant typecast' error.
Am I doing something wrong or is this a compiler limitation or bug? The help files say you can define string constants so I can't see why const ... as string throws an error, but I can't see what else they would be defined as anyway, and LCD.Write should accept strings so I'm just confused!