C1008: Constant expected

Top  Previous  Next

Description:

This error occurs when an expression which should be constant is not actually constant.

Example:

 

dim x as integer

const a = 5 * x ' error C1008: constant expression expected

 

See Also

Constants