I just received a ZX-24 and began working with the IDE. Taking a BX-24 program that functions I tried to recompile it with “Option Language BasicX� compatibility. It received errors on IntegerTableData definitions so I went to no compatibility. In using the Program Memory Data Initialization I find that a negative integer won’t work in the initialization string and had to go to the following:
Public TEMPERATURE As New IntegerTableData ({
' Sensor Temperature
4481, &hfff3 '-13
4357, &hfffc '-4
4211, 5
4047, 14
......
Is there a way to directly specify negative values without the compiler complaining about the wrong number of values per line?
Thanks,
Dennis
Program Memory Data Initialization
It looks like a minor problem in the compiler. Don is very responsive so I'm sure you will see a fix soon. In the meantime try this:
Using constants for this kind of read-only data might be a good idea in any case for readability and maintainability of your code.
Mike
http://home.austin.rr.com/perks/micros/
Code: Select all
Private Const x as Integer = -13
Private Const y as Integer = -4
Public TEMPERATURE As New IntegerTableData ({
' Sensor Temperature
4481, x
4357, y
4211, 5
4047, 14
})
Mike
http://home.austin.rr.com/perks/micros/
Last edited by mikep on 04 December 2005, 11:32 AM, edited 1 time in total.