Posted by Barbara Brazil on November 22, 2017 at 11:09:08:
In Reply to: Re: Compiler error 53 posted by Robert G Laurin on November 22, 2017 at 07:26:55:
Yes, even in the case of a constant subscript. This is due to a design flaw in the handling of the intermediate results of an expression in Comet32. We're not happy about it but trying to redesign a solution would require changes to both the compiler and to Comet. This would mean that you would not be able to compile with a new compiler and give the IB object to anyone running an older version of Comet. If you support non-subscribers or even subscribers who are content on an older version of Comet you could have problems. Furthermore, the change would affect expressions everywhere, not just on SELECT CASE. The development and debugging task would involve so much of the compiler and runtime that the opportunity for introducing new problems is far greater than any inconvenience of leaving it as is. You can just assign the array element to a simple variable and use that variable for the SELECT CASE.
Post a Followup
Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.