
-----------------------------------
x-ecutioner
Sat Nov 08, 2008 6:37 pm

min needs to be called upon first?
-----------------------------------
hey all,
simple question
first time ive used min as an x co-ordinate for drawing a box, check out the script:

View.Set("graphics: max,max")
View.Set("position:middle, middle")
drawfillbox(min,min,max,max,255)

it says that 

predefined routine min can only be referenced by calling it.

any ideas?

-----------------------------------
andrew.
Sat Nov 08, 2008 7:52 pm

RE:min needs to be called upon first?
-----------------------------------
Because the min function is for finding which of two numbers are the smallest. The same goes for max. If you want to make the box fill the whole screen, use 0,0 as your first points (the bottom left corner) and maxx, maxy as your last two points (the highest x value and the highest y value).

-----------------------------------
x-ecutioner
Sat Nov 08, 2008 7:58 pm

RE:min needs to be called upon first?
-----------------------------------
oh alright
thanks very much:)
