Array members as alias? (BS2 OEM)
vaclav_sal
Posts: 451
Can a member of an array be assigned an alias name?·
Apparently not.
I have·this code:
I2C_Data VAR Byte(4)
and like to have these alliases
TSL2561_Address VAR· I2C_Data····· ' slave address
TSL2561_Command VAR· I2C_Data····· ' command
TSL2561_Data··· VAR· I2C_Data····· ' data = $03
Editor comes up with an error on
TSL2561_Address VAR· I2C_Data(0)
and
TSL2561_Address VAR· I2C_Data[noparse][[/noparse]0]
··
Is there an alternative to accomplish this?
I am currently passing the variables to a subroutine using LOOKUP to get the array index and like to try eliminating the LOOKUP.
Just for fun so far.
Thanks ·for reading.
Cheers
Apparently not.
I have·this code:
I2C_Data VAR Byte(4)
and like to have these alliases
TSL2561_Address VAR· I2C_Data····· ' slave address
TSL2561_Command VAR· I2C_Data····· ' command
TSL2561_Data··· VAR· I2C_Data····· ' data = $03
Editor comes up with an error on
TSL2561_Address VAR· I2C_Data(0)
and
TSL2561_Address VAR· I2C_Data[noparse][[/noparse]0]
··
Is there an alternative to accomplish this?
I am currently passing the variables to a subroutine using LOOKUP to get the array index and like to try eliminating the LOOKUP.
Just for fun so far.
Thanks ·for reading.
Cheers
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php