Siebel VB Language Reference > Methods Reference for Siebel VB > Code Control Statements >

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

Format B

Me.methodname() statement

Arguments

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

Date and Time Methods
Get COM Object Method
Initialize COM Object Method
Remove Object Method
COM Object Class
Is Object Of Class Method

Siebel VB Language Reference Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Legal Notices.