|
-
Nov 1st, 2000, 04:19 AM
#1
Thread Starter
Member
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!!!!!
-
Nov 1st, 2000, 04:22 AM
#2
Fanatic Member
if you could post up a snippet of code so we can see whats going on that would be cool...
Crispin
VB6 ENT SP5
VB.NET
W2K ADV SVR SP3
WWW.BLOCKSOFT.CO.UK
[Microsoft Basic: 1976-2001, RIP]
-
Nov 1st, 2000, 04:24 AM
#3
Thread Starter
Member
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
-
Nov 1st, 2000, 04:34 AM
#4
Try declaring your enum as public in a BAS module instead.
-
Nov 1st, 2000, 04:42 AM
#5
Thread Starter
Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|