Quote Originally Posted by mischl View Post
hello all

as i understand right, dec (on hserout) and # (on serout) writes a number sign by sign out.

now, i am searching for something similar: a value (byte or word) that i should be able to handle it sign by sign.
for example: 2009 as word variable named year

byte a = 2
byte b = 0
byte c = 0
byte d = 9

how can i access it like an substring.... something like a = year[0]...?
i mean that i saw a solution already somewhere in the forum, but i am not able to remember what i am should searching for.... :-(

thanks for a hint

The DIG directive ought to work

a = year DIG 3
b = year DIG 2
c = year DIG 1
d = year DIG 0