SetComplex method

The SetComplex method assigns complex data (real and imaginary parts) to Mathcad variable Name, where Name is one of in0, in1, in2, myVariable, etc.

Syntax

longRet = objMC.SetComplex(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 in0, in1, in2, myVariable, etc.

RealPart

A variant whose contents will be assigned to the real part of the Mathcad document variable described by Name.

ImagPart

A variant whose contents will be assigned to 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.