hexagon logo

Automation, how to tell if Cancel was selected ?

Using Automation, is there a way of testing to see if the operator selected "Cancel" during the execution of the part program ?


Set App = CreateObject("PCDLRN.Application")
App.Visible = True
App.SetActive
Set Parts = App.PartPrograms
Set Part = Parts.Open("C:Test.PRG", "CMM1")
Part.EXECUTE

[COLOR="#FF0000"]How can I tell if Cancel was selected from the Dialog Window ?[/COLOR]

Part.Close
App.Quit


Thanks
Parents
  • Yes, I have a GUI that does stuff with the report at the completion of the program. I want to skip this step if the operator cancelled the execution of the part program.
    Thanks


    Take a look at ExecutionWasCancelled property in the PCDBASIC help file.
    It will return TRUE if the last execution of the program was cancelled.
Reply
  • Yes, I have a GUI that does stuff with the report at the completion of the program. I want to skip this step if the operator cancelled the execution of the part program.
    Thanks


    Take a look at ExecutionWasCancelled property in the PCDBASIC help file.
    It will return TRUE if the last execution of the program was cancelled.
Children
No Data