Contents Previous Next Subchapters

Setting Variable as Variant
Syntax covariant(methodNameargumentNumber)
covariant
See Also cocreate , coinvoke , cowith

Description
Specifies that argument number, argumentNumber to method methodName should be passed to the server as a VARIANT. The argument methodName must be a character row vector which specifies a valid method name in the current object of the currently connected server. The argument methodNumber must be an integer scalar greater than 0 and less than the number of arguments expected in the call to methodName.

By default, O-Matrix passes argument values to COM servers in the native type they are represented in by O-Matrix. Some servers expect arguments as VARIANTS. The covariant function can be used to force arguments to the VARIANT type.