[AccessD] Syntax Problem with Array

Stuart McLachlan stuart at lexacorp.com.pg
Sat Nov 27 15:15:47 CST 2021


You can't do that. VBA doesn't have constant arrays. 

There are a number of possible alternatives, why do you want  aconstant array?

On 27 Nov 2021 at 15:33, Arthur Fuller wrote:

> 1. I'm trying to declare a Constant array. This is not working:
> 
> Const LDoms() as Integer = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31,
> 30, 31} I  get the same bad result if I use parentheses instead of
> curly braces.
> 
> What am I doing wrong?
> 
> 
> -- 
> Arthur
> -- 
> AccessD mailing list
> AccessD at databaseadvisors.com
> https://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
> 




More information about the AccessD mailing list