Results 1 to 13 of 13

Thread: referencing an object that's on another form [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489

    referencing an object that's on another form [RESOLVED]

    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:
    1. Public Function FormatPhoneNumber(ByVal PhoneNumber As String) As String
    2.         Dim three As String
    3.         Dim four As String
    4.         three = Left(PhoneNumber, 3)
    5.         four = Mid(PhoneNumber, 4)
    6.         If  [COLOR=red]fclsTicketingMain.tabMainControl.tabTrbTick.chk423.checkstate[/COLOR] = True Then
    7.             PhoneNumber = "(423)" & " " & three & "-" & "four"
    8.         Else
    9.             PhoneNumber = "(706)" & " " & three & "-" & "four"
    10.         End If
    11.     End Function

    what has to be done to be able to use the state of the check box
    Last edited by Andy; Mar 25th, 2004 at 10:17 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width