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 Reply Children
No Data