- May
- 18
- 0
I'm running TCC 12.11 and TCC/LE 13.06. I'm working on re-writing a game batch menu system I wrote several years ago and have 2 questions.
First, is it possible to change the text color in a section of the window without changing the text? For example, after the menu is onscreen, can I change the color of all text in the area from row 8, col 20 to row 12, col 50?
Second, is it possible to reference a variable name when expanding another variable? Say I have variables named "optA", "optB"and "key". If key=A, can I somehow reference "opt%key" and have it return the value of "optA"?
Lastly, I know that @ASCII will return the ascii value of a given character. How about the reverse? Given an ascii value, how do I return the character?
Any help with this would be appreciated. FWIW, I've been using 4DOS/4NT/TCC since 4DOS v3 or v4 and used to know a lot of little tips and tricks like this. However, I don't use it all that much anymore so have forgotten most of it. That's what happens when you get old. :)
First, is it possible to change the text color in a section of the window without changing the text? For example, after the menu is onscreen, can I change the color of all text in the area from row 8, col 20 to row 12, col 50?
Second, is it possible to reference a variable name when expanding another variable? Say I have variables named "optA", "optB"and "key". If key=A, can I somehow reference "opt%key" and have it return the value of "optA"?
Lastly, I know that @ASCII will return the ascii value of a given character. How about the reverse? Given an ascii value, how do I return the character?
Any help with this would be appreciated. FWIW, I've been using 4DOS/4NT/TCC since 4DOS v3 or v4 and used to know a lot of little tips and tricks like this. However, I don't use it all that much anymore so have forgotten most of it. That's what happens when you get old. :)
Last edited: