VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Simple way to start learning the enum statement

Chrysovalantis Anastasiades  (5 Submissions)   Miscellaneous   VB 6.0   Unknown Difficulty   Mon 15th September 2008   Mon 8th February 2021

Simple way to start learning the enum statement

API Declarations


'Declaration(inside a module)
Public seasonpoint As Season
Public Enum Season
Winter = 1
Spring = 2
Summer = 3
Autumn = 4
End Enum
Public Function findSeason(in1 As Season) As String
Dim b As String
Select Case in1
Case 1
b = "Winter"
Case 2
b = "Spring"
Case 3
b = "Summer"
Case 4
b = "Autumn"
Case Else
b = "Error"
End Select
findSeason = b
End Function


Rate Simple way to start learning the enum statement (1(1 Vote))
Simple way to start learning the enum statement.bas

Simple way to start learning the enum statement Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters