Main Menu

problem with integer

Started by blackmeadow, January 16, 2008, 08:52:50 PM

Previous topic - Next topic

blackmeadow

hey, guys, i was wondering why i'm getting feedback on creating these variables:

startw = getfontwidth(start$) / 2
starth = getfontheight(start$) / 2


the error says Parameter[#1] is Incorrect Type, Expecting Integer of Float type and i'm thinking parameter one is referring to the direct input into the commands?  getfontwidth and getfontheight require strings.

kevin

Quotegetfontwidth and getfontheight require strings

No, they require a Integer.  For Help on a command from the IDE click the command name and then press F1.   

blackmeadow

i'm sorry, kevin, i thought it was gettextwidth and height  :-[Error Missing Closing Square Bracket