assign commands to procedure variables

Nagib M.
Fleury-Les-Aubrais,

Apr 12, 2013
4 Posts

0  |  0  

Re: assign commands to procedure variables

Hi,

I've seen in ATeasy documentation that since v8.0, it's possible to assign commands to procedures variables.

Does anyone know how to achieve this?

Thank you

Solution Available
DrATEasy (Ron Y.)
Mission Viejo, CA

Apr 12, 2013
358 Posts

1  |  0  

Re: assign commands to procedure variables

Declare a procedure variable:

proc :Procedure

Suppose we have a command:

DMM Measure (pdResult: Var Double)

Use it as follows:

proc="DMM Measure"

or

proc=DMM Measure

Now, call It:

proc(TestResult)

DoubleM (Moti M.)
Haifa, Select

Apr 14, 2013
13 Posts

0  |  0  

Re: assign commands to procedure variables

What if the original command was: "DMM Measure (pdResult: Val Double=12)" ? meaning, there is a constant in the command.

DrATEasy (Ron Y.)
Mission Viejo, CA

Apr 15, 2013
358 Posts

0  |  0  

Re: assign commands to procedure variables

If you mean that the command has an argument, then the parameter is eliminated and you call it:

proc()

If you mean that the procedure have an optional parameter with default value of 12, then you can call it:

proc()
or proc(13)



Please Note
You need to have a M@GIC account to participate in the Forums.
Not yet registered on our website? Click here to register today!

All content, information and opinions presented on the Marvin Test Solutions User Forums are those of the authors of the posts and messages and not Marvin Test Solutions'. All attachments and files are downloaded at your own risk. [Read More]