I am writing a function that has arguments passed to it....no problem. But, I need determine the checkstate of a checkbox that does not get passed to it.
I have this code and it says: Reference to a non-shared member requires an object reference.
VB Code:
Public Function FormatPhoneNumber(ByVal PhoneNumber As String) As String Dim three As String Dim four As String three = Left(PhoneNumber, 3) four = Mid(PhoneNumber, 4) If [COLOR=red]fclsTicketingMain.tabMainControl.tabTrbTick.chk423.checkstate[/COLOR] = True Then PhoneNumber = "(423)" & " " & three & "-" & "four" Else PhoneNumber = "(706)" & " " & three & "-" & "four" End If End Function
what has to be done to be able to use the state of the check box




Reply With Quote