
-----------------------------------
jasonlin6868
Mon May 26, 2008 3:42 pm

What to use when I can't use Font.Draw
-----------------------------------
Because of the fact that Font.Draw cannot read real and int numbers therefore I am looking for a command that is common to Font.Draw that can read both numbers and words.
Any suggestion?

 :(

-----------------------------------
Clayton
Mon May 26, 2008 3:45 pm

RE:What to use when I can\'t use Font.Draw
-----------------------------------
Font.Draw (intstr (myInt),...)

-----------------------------------
jasonlin6868
Mon May 26, 2008 3:59 pm

RE:What to use when I can\'t use Font.Draw
-----------------------------------
Could you explain more specify?

-----------------------------------
Clayton
Mon May 26, 2008 4:00 pm

RE:What to use when I can\'t use Font.Draw
-----------------------------------
Check out F10 for Font.Draw() and intstr() and realstr(). I think you'll figure it out.

-----------------------------------
jasonlin6868
Mon May 26, 2008 4:32 pm

RE:What to use when I can\'t use Font.Draw
-----------------------------------
Don't really get it. Do u have to do the realstr() thing outside or inside of the Font.Draw?

-----------------------------------
CodeMonkey2000
Mon May 26, 2008 4:33 pm

RE:What to use when I can\'t use Font.Draw
-----------------------------------
realstr() takes a real number, and converts it into a string. As Clayton already said, look up intsrt() and realstr() in the Turing help section.

-----------------------------------
Sean
Mon May 26, 2008 5:34 pm

Re: What to use when I can't use Font.Draw
-----------------------------------
It's inside the Font.Draw where you have the text part which would be the beginning of your Font.Draw parameters.



Font.Draw (intstr (variable name), ...)


-----------------------------------
I Smell Death
Wed May 28, 2008 9:12 am

Re: What to use when I can't use Font.Draw
-----------------------------------
Here's an other sample


var rNum:real:=3.14159
var iNum:int:=-2
var fn:int:=Font.New("serif")

Font.Draw("the real number is "+realstr(rNum,1)+" and the integer is "+intstr(iNum),5,5,fn,black)
Font.Free(fn)
