I know that Gbasic can split a word variable into 2 byte variables by appending _h to the high variable, but does the reverse work .
ie.
Dim A1 as word
A1_h=1
A1=1
Will this make A1 = 257.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I know that Gbasic can split a word variable into 2 byte variables by appending _h to the high variable, but does the reverse work .
ie.
Dim A1 as word
A1_h=1
A1=1
Will this make A1 = 257.
That will work if you set A1 first, then A1_H. When you set A1 to 1, A1_H will be cleared.
Another way to do that is to use an alias:
Dim A1 As Word Alias A1Low, A1High
A1High = 1
A1Low = 1
That would make A1 = 257 too, and would avoid the unnecessary clearing of the high byte that occurs without the alias.
Fantastic.
Thats what I need.
Thanks