stop

The stop statement stops all running procedures immediately.


Parameters

No parameters.


Description

A procedure continues running until it reaches the last statement in the procedure or it encounters a stop statement. The return statement will also stop a procedure if the procedure has not been called as a subroutine. If you only want the procedure to stop under certain conditions you should use the stop statement with if or case statements.

This example will cause the procedure to stop running if the current value of prices is less that the current value of cost.

if price<cost
    message "That's all folks"
    stop
endif
Qty=Qty+1

See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.