Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

TypeBehavior
"Object"Specify this type when need to pass an object. The Value parameter must be an SRP_COM object handle. Note: You can omit the Value parameter or set Value to "" or "NULL" to pass a null object reference.
"Omitted"Specify this type when you want to truly omit the parameter. The Value parameter is ignored.
"Value"

Specify this type when you want to pass a simple value. This behavior is the same as the CALL service.

"String"

(New in 2.2.13) Specify this type when you want to pass a value and ensure that it is treated as a string.

Example

Here is a real world use case. In the Excel object model, there is a ListObjects class. You can add a variety of Excel objects to this class, and if you add a Range to it, there is a parameter that you must omit or the method will fail. This means we need that ability to pass an object and omit a parameter. The CALL service can't do this for us, so we'll use BEGINCALL...ENDCALL instead.

...