Computer Science Canada Font.Draw and variables... |
Author: | BryX [ Fri Sep 19, 2003 6:54 pm ] | ||
Post subject: | Font.Draw and variables... | ||
is it possible to use variables in using Font.Draw, example below, ebcause what i've done so far here i can't get to work ![]()
|
Author: | Tony [ Fri Sep 19, 2003 7:02 pm ] | ||
Post subject: | |||
you cant use maxx div 2 as an integer value. Any div operation results in a double (real) value. You'd have to round it
|
Author: | Mazer [ Fri Sep 19, 2003 7:26 pm ] | ||
Post subject: | |||
tony wrote: you cant use maxx div 2 as an integer value. Any div operation results in a double (real) value. You'd have to round it
wha??! ![]() using div will divide and truncate. therefore integer div integer will give yet another integer; no rounding necessary! |
Author: | Tony [ Fri Sep 19, 2003 7:30 pm ] | ||
Post subject: | |||
Mazer wrote: wha??! ![]() using div will divide and truncate. therefore integer div integer will give yet another integer; no rounding necessary! ops, my bad... didnt use Turing in a long while.. anyways, in the line Quote: "Shall we begin " ,name, "?",
it doesnt work the same way was put does. See those commas? It actually things that the variable name is the next argument for the function, so it gets confused. You should use + sign instead to add strings together.
|
Author: | BryX [ Fri Sep 19, 2003 7:30 pm ] |
Post subject: | |
thx alot man |