On Tuesday 22 August 2006 10:20 am, Emile Schwarz wrote: > Hi, > > REALbasic 2006 Release 3 > Mac OS X 10.4.7 > > The question is: how can I do what the example code below suggest I want > to do! > > [In Window.MouseDown] I wanted to use Select Case, tried some solutions > and fall into: > > Select Case Y > > Case Is < 100 // Was: Y < 100 // Row #1 > startY = 0 > endY = 100 > > Case Between(Y,100,200) // Was: Is > 100 And Is < 200 // Row #2 > startY = 100 > endY = 200 > > > Case Between(Y,200,300) // Was: Is > 100 And Is < 200 // Row #3 > startY = 200 > endY = 300 > > > Case Between(Y,300,400) // Was: Is > 100 And Is < 200 // Row #4 > startY = 300 > endY = 400 > > Case Between(Y,400,500) // Was: Is > 100 And Is < 200 // Row #5 > startY = 400 > endY = 500 > > End Select > > But this does not works: > > Type mismatch error. Expected Int32, but got Boolean. > Select Case Select Case Y > Hi Emile, I know you're asking about Select Case, but do you have to use it? Could you use something like:
startY=floor(Y/100)*100 endY=startY+100 DJ _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
