Le 22 août 06 à 17:20 Soir, Emile Schwarz a écrit:
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
Why ?
Because "Is < 100" is a boolean (it means "is that true that ls is
lower than 100?", which can be answered by true or false, i.e a
boolean).
A select case accepts integers and Strings
only._______________________________________________
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>