GetComplex Method

The GetComplex method retrieves complex data (real and imaginary parts) from Mathcad variables.

Syntax

longRet = objMC.GetComplex(Name As String, RealPart, ImagPart)

Element

Description

longRet

Return value indicating success or failure.

objMC

A Mathcad document object.

Name

A string that is one of out0, out1, out2, etc.

RealPart

A variant that receives the real part of the Mathcad document variable described by Name.

ImagPart

A variant that receives the imaginary part of the Mathcad document variable described by Name.

Remarks

When using Visual Basic, the RealPart and ImagPart variables should be declared as variants.