-
Does anyone know a fix or workaround for the bug when running and VB trying to recognize enums?
I have set up valid enums and sometimes the program runs without error and other times I get a message that says "Constant Expression Required"!!!! This is really nagging at me know!, can anyone help!!!!!
-
if you could post up a snippet of code so we can see whats going on that would be cool...
-
I set my enum up as so:
Private Enum eLckups
WorkRec = 0
MapType = 1
ManCat = 2
BillType = 3
End Enum
And then in form load I am trying to ref the enum and it gives me the error!
dtgMap.RowHeight = cboLckups(eLckups.WorkRec).Height
-
Try declaring your enum as public in a BAS module instead.
-
Thanks that seems to work but obviously this error/bug occurs in-frequently so if I get it at any time I will let you all know!
Cheers Chaps