Range not defined for type aType

Navigation:  Messages > Macro Compiler Messages > Errors >

Range not defined for type aType

Previous pageReturn to chapter overviewNext page

This compiler error will occur if a string variable is used with the membership operator and a range operator using strings. For example :

 

  if sTemp in ['22'..'33']

 

  endif

 

Note however, that the following is perfectly allowed.

 

  if sTemp in ['22','33','44']

 

  endif

 

The cause of this error is not the use of strings with the membership operator (this is allowed as seen above), but the use of strings in the range [..] operator.


Topic 109019 updated on 15-Apr-2002.
Topic URL: http://www.qppstudio.net/webhelp/index.html?rangenotdefinedfortypeatype.htm