What code did you finally settle on that works?
I'm surprised the commented-out function didn't work?
This worked for me no problem:
Function DrawText(text:String,x:Float,y:Float);End Function
'Comment out the above line to let DrawText work
Graphics 320,240,0
DrawText "Hi",50,50
Flip
WaitKey