qperr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Error Message
 
Error 40:  Incompatible subrange types
 
The statement contains two different subrange types.
 
A subrange type is composed of a specified range of any
standard or user-defined ordinal types. Subranges consist
of elements of the same type. The lower and upper bounds
of a subrange must be of the same data type.
 
Change one of the boundary values so that both values
share the same data type.