form stack

If you have a system with many forms and you want to be able to close forms automatically or easily access the form currently open, you need a common routine which keeps track of any chages.

Tool&Task uses a string (gFormString) and appends the name of the current form when it opens and removes the form-name from this string when it closes.

Each form has a procedure getform which is called from form.init() of the form and the procedure putform when it closes (in form.release()). When you select 'show current form stack' from the right-click menue of the screen icon, gFormString is taken and displayed in the form m_longmess