Suggestion

GCC Consulting rkreiss at gccconsulting.net
Sat Mar 2 12:29:00 PST 2013


For one of my client's, I am using quite a number of @key options to make
updating records easier.  Over the course of time the number grew to 15 or
more  @key functions.  I originally has rolling screen prompts thanks to
some programming from John Esak.

However I ran into the problem of keeping track of which keys I used for
what function.  I considered creating help file with the prompts and what
they did but decided to use a non-static method. I used the menu function
with a press of the "M" key bringing up the menu at any screen.  This prompt
was added to the primary screen prompts.  

Steps:
1. Add @keyM to you processing table
2. dimension an array men(NN) large enough to display the @key functions
being used.  Keep in mind that the first element of the array is the Title
or description
3.  menu men
do1,do2,do3,.....................................................  I kept
the labels short to allow for as many as possible on the programming line.
4. Program each doN with the @key or dokey(5.6.0) programming wanted.

In some cases, I have more than one possible action tied to an @key.  In
those cases a list box is used to select the action to be taken.

This is not original and I am sure some of you are already doing this, but
for those who haven't, just a handy programming tip.



Richard Kreiss
GCC Consulting

Office: 410-653-2813





More information about the Filepro-list mailing list