I've never written methods for a class. I'm trying to do something I think is simple and but I'm not sure how.
I want to input of an integer (public enum) and return text.
I am using this property:
Property Argument() As WhereArgument
Argument = pArgument
Set(ByVal value As WhereArgument)
pArgument = value
Public Enum WhereArgument
equal = 0
notequal = 1
greater = 2
less = 3
greaterORequal = 4
lessORequal = 5
I can do this but what I want to do is have some sort of custom method like a .tostring(of course named something else) but that returns " = "
Dim test As SQLWhere
test.Argument = WhereArgument.equal
Dim Test2 as string = test.Argument.MyToString 'Test2 should be " = "
Please help me out by showing me how to write this method