Enum or something else..??
Hi (first sorry for my bad english)
i have follow code:
VB Code:
Public Const COMPANY_TABLE As String = "Company"
Public Const COMPID_FIELD As String = "CompID"
Public Const COMPANYNAME_FIELD As String = "Companyname"
Public Enum FIELDS
COMPID_FIELD
COMPANYNAME_FIELD
End Enum
now, i would like to get back for example the COMPANYNAME_FIELD Value.
dim CompanyField as String = FIELDS.COMPANYNAME_FIELD
CompanyField should be now "Companyname"
I just want to list the possible fields in the .NET Environment
( public sub myFunction(byval Field as FIELDS) )
Maybe there is another way how to do this?