Command group | Flag affected | Reversible | Execute on client | Platform(s) |
---|---|---|---|---|
Classes | YES | NO | NO | All |
Rename class ([Perform find and replace]) {class-name/new-name}
Perform find and replace | If specified, and the command is executing in a development version of Omnis, the command opens the find and replace dialog to allow the user to replace the old class name with the new class name |
This command renames the specified library class and can perform a find and replace. Errors, such as attempting to use a name that is already in use, simply clear the flag and display an error message. You can rename a class which is in use.
When renaming a class, you can use the Perform find and replace option to search through all the classes in the library and replace the references to the old class name with the new name.
New class {Search Class/sMySearch} ## create new search class
Modify class {sMySearch} ## let user modify it
Delete class {sUser} ## delete the search class sUser
Rename class {sMySearch/sUser} ## rename the new search class to the old search
Set search name sUser
Print report (Use search)