Computer Science Canada Using variables as text in Font.Draw |
Author: | 14fenix [ Sat Dec 06, 2003 8:12 pm ] | ||
Post subject: | Using variables as text in Font.Draw | ||
Im making a "Kids Program" that helps teach kids how to add/multiply/etc... Anyways.. Im trying to avoid using simple put statements and am using Font.Draw I want my code to generate random numbers, and then ask what the two numbers equal when added... The problem is, im trying to combine variables and text in the section of the Font.Draw command where you input your text.. Heres a simplified version of my code:
Do you guys see my problem?? Commas are used to divide arguments but im trying to use them to divide vars from my text.. How can I work around this?? Thanks |
Author: | AsianSensation [ Sat Dec 06, 2003 8:28 pm ] | ||
Post subject: | |||
use intstr to convert the integers to strings, then concatenate.
|
Author: | 14fenix [ Sat Dec 06, 2003 9:01 pm ] |
Post subject: | |
Sweet thanks. I was looking at the intstr command too but wasnt too aware of what it does |