Invalid Numeric Range

Navigation:  Messages > Macro Compiler Messages > Errors >

Invalid Numeric Range

Previous pageReturn to chapter overviewNext page

This compiler error will occur if the range used with an in operator is incorrect.

 

 bIsWeekend = (nWeekday in [7..6])

 

Note that this message can also occur, under the same circumstances if the range used in a case statement is incorrect.

 

 switch nWeekday

         case 1..5 {this is OK}

                 sRESULT = 'Working Day'

         case 7..6 {<- !!}

                 sRESULT = 'Weekend'

 endswitch

 

See the Range Operator for the rules on range construction.


Topic 109005 updated on 11-Apr-2002.
Topic URL: http://www.qppstudio.net/webhelp/index.html?invalidnumericrange.htm