Hi all, I was wondering if anybody has come up with a (simple) way to use a variable to supply button text to gfx_Button. I have a function that uses a numerical argument to determine where to draw the button, and I want the button text to reflect the number passed.
Essentially it would look like this:
var mynumber;
mynumber := 44;
gfx_Button2(1, x, y, 50, 50, buttoncolor, textcolor, [DEC2Z]mynumber);
so if mynumber is, say, 27, it will draw a button with "27" as the button text. If mynumber is 9, it will draw a button with "09" as the button text.
I tried searching and there are a couple posts, but I have been unable to get it to work.
Seems like it should be pretty straightforward. If not, then it should be.
Anybody out there have anything that might help? Thanks in advance :-)
Essentially it would look like this:
var mynumber;
mynumber := 44;
gfx_Button2(1, x, y, 50, 50, buttoncolor, textcolor, [DEC2Z]mynumber);
so if mynumber is, say, 27, it will draw a button with "27" as the button text. If mynumber is 9, it will draw a button with "09" as the button text.
I tried searching and there are a couple posts, but I have been unable to get it to work.
Seems like it should be pretty straightforward. If not, then it should be.
Anybody out there have anything that might help? Thanks in advance :-)
Comment