• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Invoking Methods

The things that an object knows how to do are called the object’s methods. Invoking a method uses syntax very similar to setting a property. You separate the method name from the object name with a dot. Here’s an example of invoking a method:

Sub InvokeMethod()
  ' Invoke a method of an object
  Dim frm As New Form_Projects
  frm.Visible = True
  frm.Move 0, 0, 1440, 1440
  MsgBox "Click OK to continue"
End Sub


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint