Assiging Commands to Procedure Variable Type
Raz R.
haifa,

Dec 11, 2017
14 Posts

assiging commands to Procedure variable type

Assume i have a variable of "Procedure" type name pFunc

And also i have DRV that has the command: MYDRV EXECUTE MYCMD(iCnt,dResult)
The function that i want to use "sits" in another driver and it is not public. So i only have access to the COMMAND that calls this function.

How do i assign the command to the Procedure variable?

I tried doing this:
pFunc =  MYDRV EXECUTE MYCMD

It dosent compile. it thinks i want to call the MYCMD commands and ask for parameter.

Solution Available
Sutton B.
Irvine, CA

Dec 11, 2017
8 Posts

Re: assiging commands to Procedure variable type

Hi Raz,

What build of ATEasy are you using? I was able to do this in ATEasy 10 and this sounds like an issue that was fixed in ATEasy 8.0 build 148c.

Regards,
Sutton

Raz R.
haifa,

Dec 11, 2017
14 Posts

Re: assiging commands to Procedure variable type

ATEasy 7.0 build 142g

Are you certain?

Sutton B.
Irvine, CA

Dec 12, 2017
8 Posts

Re: assiging commands to Procedure variable type

Hi Raz,

I saw the same issue while using the same build as you, but didn't have any issue when using version 8 or newer. I was able to assign the command to the variable and then call the procedure from that variable.

Try your code or just this portion of code in a newer version and see if it assigns the procedure correctly.

Regards,
Sutton

Raz R.
haifa,

Dec 24, 2017
14 Posts

Re: assiging commands to Procedure variable type

You were right!



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]