B
Bishop
If this (below) is something that can be done in VB.NET can you provide an
example, link to page explaining, or at least a keyword I can use to search
Google?
What I want to do is define a group of constants so that when something
calls my function, instead of remembering what 1,2,3, and 4 is, I can call
it using the group I already defined. For instance:
Const Group Definitions:
CanTypes
1 - RegularCola
2 - DietCola
3 - CaffeneFreeCola
4 - CaffeneFreeDietCola
Example Function:
Function GetPopDetails(CanType as CanTypes) as String
if CanType = 1 then
'Do stuff
'Return info
end if
End Function
Calling Function:
dim myString as string = GetPopDetails(CanTypes.RegulaCola)
example, link to page explaining, or at least a keyword I can use to search
Google?
What I want to do is define a group of constants so that when something
calls my function, instead of remembering what 1,2,3, and 4 is, I can call
it using the group I already defined. For instance:
Const Group Definitions:
CanTypes
1 - RegularCola
2 - DietCola
3 - CaffeneFreeCola
4 - CaffeneFreeDietCola
Example Function:
Function GetPopDetails(CanType as CanTypes) as String
if CanType = 1 then
'Do stuff
'Return info
end if
End Function
Calling Function:
dim myString as string = GetPopDetails(CanTypes.RegulaCola)