Hi everyone,

This is the second time I've tried to post this message so please forgive me if I'm a little brief.

My first problem is with using arrays of word variables. I am unable to pass a word from one array into another, I must use an intermediate variable for it to work i.e.

Dim ArrayA[5] as Word
Dim ArrayB[5] as Word

ArrayB[1]=ArrayA[1]

Returns funny values so I have to do the following:

Dim ArrayA[5] as Word
Dim ArrayB[5] as Word
Dim Tempword as Word

Tempword = ArrayA[1]
ArrayB[1] = Tempword


My second problem is with evaluating Bits in a conditional IF/THEN statement:-


Dim Flag as Bit

Flag = 1

If Flag = 1 then goto dosomething

In the above example dosomething is never executed as If Flag = 1 is ALWAYS evaluated as false. The following variation will not work either:

Dim Flag as Byte

Flag.0 = 1

If Flag.0 = 1 then goto dosomething

The only way I can get a conditional IF/THEN to work on a bit is to load it into a Byte first and evaluate the whole Byte:

Dim Flag as Bit
Dim Temp as Byte

Flag = 1
Temp=Flag

If Temp = 1 then goto dosomething

The above works fine. These statements used to work before I upgraded so they must be bugs in the compliler?? There must be others of you out there that have come across this? After all its pretty fundamental stuff.

Any suggestions, comments or news of bugfixes/upgrades would be gratefully recieved.

atb

Dave Housley