test(0) holds the first ASCII digit (tens) = example 49
test(1) holds the second ASCII digit (units) = example 53
Value var byte
value=((test(0)-48)*10)+(test(1)-48)
value using our example ASCII 49 53 will be decimal 15.
If 'value' is likely to be bigger than 255, then it'll have to be a word.
You now have the knowledge... be creative...
I recon the hood in your avatar is stopping you seeing the big picture... lose the hood, buy a crate of beer...
Bookmarks