Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Is it possible...
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
mightymoosie




PostPosted: 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
Sponsor
sponsor
[Gandalf]




PostPosted: 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




PostPosted: Tue Mar 07, 2006 9:45 pm   Post subject: (No subject)

yo man , thanx that really helps
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: