VB编程出现“发现二义性的名称”的错误
PublicEnumDayssundaymondaytuesdaywednesdaythursdayfridaysaturdayEndEnumPublicEnumwork...
Public Enum Days
sunday
monday
tuesday
wednesday
thursday
friday
saturday
End Enum
Public Enum workdays
sunday
monday
tuesday
wednesday
thursday
friday
saturday
invalid = -1
End Enum
Private Sub command1_click()
Dim myday As workdays
myday = saturday
If myday < monday Then
MsgBox "it's the weekend . invaild work day!"
End If
End Sub
我在运行的时候 错误提示是“发现二义性的名称:saturday”
请问错误在哪儿?
谁能帮我修改一下?谢谢 展开
sunday
monday
tuesday
wednesday
thursday
friday
saturday
End Enum
Public Enum workdays
sunday
monday
tuesday
wednesday
thursday
friday
saturday
invalid = -1
End Enum
Private Sub command1_click()
Dim myday As workdays
myday = saturday
If myday < monday Then
MsgBox "it's the weekend . invaild work day!"
End If
End Sub
我在运行的时候 错误提示是“发现二义性的名称:saturday”
请问错误在哪儿?
谁能帮我修改一下?谢谢 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询