Posted by admin
Delphi Constant Set
I have a number of constants defined ranging from integer values from 10 to 600, initially I left the conatants untyped. I then include the constants in a set of the form 'if x in [const1, const2, const3] then'. I get a compiler message on one of the constants (520) saying 'constant expresion violates subrange bounds'. Making this particular constant a typed (integer) constant solves this. However, I then need to use the constant in a case statement, whereupon I get a compiler message not liking typed constants in the case. Can anyone shed some light on this situation for me, is there a way I can set things up so both uses of the constant will work?
Thanks a lot,
How to declare a Constant array of array of Record in Delphi. Hi, Let's suppose the following. How do I put all that in a single constant array of array declaration? Status: Solved; Priority: Medium. You could set extra properties on a group. Length of a declared pChar Constant. Declaring constants. Strings declared with constant length. How to declare an array constant? Mogali rekulu today episode. Syntax to declare Constant 'Startup' 7. How to declare constant. Setting the BDE MEMSIZE constant programmatically. Conversion of Pascal Real constants to C/C++ float constants. C Constants to. No information is available for this page.Learn why.
Thanks a lot,