For Duplicate Tasks, Use Procedures

Prev Next Home Home Table Of Contents Index

FOR DUPLICATE TASKS, USE PROCEDURES

As menus become longer and more complex, many times you are duplicating a process that you have already written. Although it is easy to copy a block of code, it is better to create a procedure.

With procedures, the process is put in one place and is given a name. Preferably a long meaningful name. Once this procedure is defined and named, it can be used as if it were part of the MarxMenu language. This makes menus smaller and easier to read. It is also a way for you to combine small processes into large processes. Procedures can be built using other procedures.

Once you have a process figured out and working in a procedure, the whole process becomes a black box with a name that you can use elsewhere. The whole process is reduced down to a name that just works!

Another advantage of procedures is that if circumstances change and the procedure needs to be modified, you only make a change one place in your menus, and everything that uses that procedure is automatically changed. This makes menu maintenance easier.

Prev Next Home Home Table Of Contents Index

Sponsors
Shopping
Forum
Forum
email
EMail
Index
Index
Home
Home