Me Statement

The Me statement is standard Visual Basic shorthand that refers to the currently used object. It does not return a value. A Siebel VB module can be attached to an application object. If this application object encounters a some events, then Siebel VB might call a subroutine. For example, if the user clicks a button, then the Me statement runs Visual Basic code or a statement calls a method on an application object.

A subroutine in this situation can use the Me variable to reference the object that starts the event. For example, the button click. You can use the Me statement the same way that you use any other object variable except that you can use the Assign COM Object statement to set Me.

Format A

With Me
   .methodname() statement
End With
Me.methodname() statement

The following table describes the arguments that you can use with this method.

Argument Description

methodname

The name of the method that Siebel VB uses with the object.

statement

The statement argument includes one of the following items:

  • The code that Siebel VB runs

  • The arguments to the method

Example

For an example, see Modify Variable Statement.

Related Topics