Page 1 of 1

Script exit

Posted: Thu Dec 13, 2018 12:52 pm
by SteveJP
Hi,
Does anyone know how to exit a script, other than by running off the end that doesn't cause an exception and SharpCap to exit. I''ve tried
quit()
exit()
sys.exit(0)
Thanks

Re: Script exit

Posted: Thu Dec 13, 2018 1:55 pm
by oopfan
Try 'return'

Re: Script exit

Posted: Thu Dec 13, 2018 9:23 pm
by SteveJP
oopfan wrote:
Thu Dec 13, 2018 1:55 pm
Try 'return'
Brilliant. Why didn't I think of that ? Too obvious I guess!
Thanks oopfan