06-16-2008 12:14 PM
06-17-2008 01:14 AM
06-17-2008 09:19 AM - edited 06-17-2008 09:22 AM
06-17-2008 12:37 PM
Dear Ray,
Your knowledge has always been overwhelming to me...
1. I was successful in the first option (active x with Execution.GetStates). I was quite happy to succeed with that as I've never used an API function before. Are there more examples of using API functions for various tasks?
2. The second part gave me 'Done' for status and not Terminate. I used as the first step in the cleanup a popup message and in the body of the message I wrote 'Locals.ResutlList[0].Status.
Was I supposed to see "Terminate" instead of Done?
What is the meaning of [0]?
In which cases there is more than [0] in the arry?
Thanks
Rafi
06-17-2008 01:14 PM
Hi again,
It seems that the Termination brings back the value 3 and not 2 as you indicated.
Is this correct or I'm not looking at the right place?
Thanks
Rafi
06-18-2008 12:41 AM
Hi Rafi,
The reason you are seeing the value 3 is because you must be running interactivily. In the Help for GetStates give the different values for termination states.
So you would need to look for either 2 or 3.
Regards
Ray
06-18-2008 12:54 AM
Hi Rafi,
"Your knowledge has always been overwhelming to me..." it's nothing special, just been doing a long time ![]()
[0] means the first element of an 1D array.
Was I supposed to see "Terminate" instead of Done? If you are seeing done then you have not got the correct element of the ResultList array.
If you have terminated a step in the Main, which was the 4th recorded step and you had not recorded steps in the Setup, then if the first step in the Cleanup, you would have to check ResultsList[3] to see the Status of Terminated.
Hope this helps.