Type: | Submodule | Parent Module: | ModuleCMethods |
This sub-module removes any redundant Quit method commands that are found at the end of a method.
It was common practice in OMNIS 7 libraries to define local and format variables at the end of a procedure preceded with a Quit procedure command. If a library is converted to OMNIS Studio then the built in converter removes the local and format variable commands and places the declarations in the method editor variable pane. However the Quit method command is left at the end of the method.
Locate any Quit method commands. If the command is located at the end of a method then remove it and any preceding blank lines.
Remove Quit method commands from end of method even if followed by blank lines.
Do not remove Quit method command at end of method if it returns a value e.g. "Quit method myVariable".
Do not remove Quit method commands located in the middle of a method.