Use 'Return' instead: https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls?KEY=RCOS_creturn
In general, if you're trying to exit a method and return a value to the caller, 'Return' is the best way to do that, as 'Quit' also has functionality for control flow (such as breaking out of WHILE loops).
- Log in to post comments