On Aug 22, 2006, at 9:02 AM, Arnaud Nicolet wrote:

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.

That is not correct:

testExpression
Any expression that evaluates to a value. The expression can be of any data type or an object.

The problem is that he is attempting to use expressions that require a boolean 'and' operation. Only a single evaluation or the implied 'Or' (the separating commas) is allowed in a Select Case statement.

The following will work:

  Select Case Y
  Case Is <100
    startY = 0
    endY = 100

  Case Is <200
    startY = 100
    endY   = 200

  Case Is <300
    startY = 200
    endY = 300

  Case Is <400
    startY = 300
    endY = 400

  Case Is <500
    startY = 400
    endY = 500

  End Select

 Terry
_______________________________________________
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>

Reply via email to