Is it possible...
Author |
Message |
mightymoosie
|
Posted: Tue Mar 07, 2006 9:06 pm Post subject: Is it possible... |
|
|
Ok guys, I'm not reall too noob at Turing, but still fairly unknowing. Anywayz, I need to know is there anyway that i can put a variable in a Font. Draw command. This is my coding
var font:int
font:= Font.New("arial:12")
Font.Draw("This si your subtotal",subtotd,"", 100, 200, font, white)
subtotd is teh var i want to display within my font draw.
Any help would be greatly appreciated |
|
|
|
|
|
Sponsor Sponsor
|
|
|
[Gandalf]
|
Posted: Tue Mar 07, 2006 9:43 pm Post subject: (No subject) |
|
|
code: | Font.Draw("This si your subtotal: " + intstr(subtotd), 100, 200, font, white) |
intstr() converts the integer to a string, so that it can be concatenated to the other text using the + operator.
Also, please note the use of code tags in the future. |
|
|
|
|
|
mightymoosie
|
Posted: Tue Mar 07, 2006 9:45 pm Post subject: (No subject) |
|
|
yo man , thanx that really helps |
|
|
|
|
|
|
|