ESC Key
Nancy Palmquist
nlp at vss3.com
Fri Oct 7 10:43:28 PDT 2011
Scott,
Flow is always one of the hardest things to get a handle on.
Think of @wef, @wlf, @wbl, @whp, @wuk - think that is all.
As processes that run when an event happens. It runs until it hits
SCREEN, END, SKIP (couple of other commands but the list is in the
docs.) Then the event is over and it moves to the next field.
When you press ESC - you are moving from top to bottom through the INPUT
table.
Input starts at line 1 and accomplishes lines until you hit END, EXIT,
etc. (again the list is in the docs.)
Consider INPUT processing for regular input, output, @key, chain stuff.
Call stuff is a little different - a call ends at END or Screen (I often
forget this last one.)
Auto runs before a record is displayed - Auto is for establishing data,
setting variables, passing data from one table to the next, not doing
input stuff.
Then you have @once, @done, @menu and @entsel - sequence logic that run
at specified times - obvious from the names, and finish when they hit an
END. Records are not locked in these routines so data changing should
not be done here on the current record. Be careful.
This is very brief and can take hours to get clear but if you take a
table apart and think of each section as a separate little program, it
works.
My tables usually work like this:
INPUT: Put user in data entry
@wlf processing checks data in fields that you just left. If the
field is blank or has the wrong value and they should not continue plop
them back in the field. As you move through the field you should look
at each piece of data and write these.
ESCAPE is pressed. Now you move forward in INPUT processing and here is
where I check relationship data. You know if it is tuesday and the moon
is full then field 10 should be YES. That kind of stuff. If I find a
problem, put then back in the bad field, add a goto the repeats the test
you just did when they press ESC again.
Save the data as needed.
Give them the next screen when you are happy and repeat that process for
each screen.
I hope this is not too general, but you may find some tips of use on my
web page that go into more detail.
http://www.vss3.com
Nancy
On 10/6/2011 8:23 PM, Scott wrote:
> Ken
>
> Sorry I should be mentioned FP ver 4.8.10
>
> And I think SAVE OFF is in ver 5.0?
>
> Does the table start at line 1 when it come in cold ?
>
> I have all my array fields set at the start of my table then it comes to a
> 'end' before the start of my 1st @wef .
>
> Thanks Ken
>
> Scott
>
>
>
>
> -----Original Message-----
> From: Kenneth Brody [mailto:kenbrody at spamcop.net]
> Sent: Friday, 7 October 2011 10:02 AM
> To: scott.filepro at aanet.com.au
> Cc: filepro-list at lists.celestial.com
> Subject: Re: ESC Key
>
> On 10/6/2011 7:51 PM, Scott wrote:
>> Hi all
>>
>> Having issues with users (after being told not to) pressing ESC while in a
>> add record, there for saving the record before the completion of the
> fields
>> and the rest of the required code. (Uniquie number is assigned at the end
>> menu of processing and then record is saved).
> If there are fields on the screen which you require to be filled in, have
> you considered tell filePro about this? (Use "%nnn" rather than "*nnn" on
> the screen, and filePro will require that those fields be non-blank before
> allowing the user to save the screen.)
>
>> Is there a off function ? ( like the BREAK OFF for Ctrl-C)
> You mean, something like "SAVE OFF"?
>
>> Where does the processing go after a ESC press?
> If no processing is currently running, the it starts at line 1 of the input
> table. Otherwise, it continues after the SCREEN/POPUP command that entered
> the screen.
>
>> Return to the start of prc table then . maybe a auto table
>>
>> Can anyone tell me how to stop the user pressing the ESC key, or do I
> just
>> have to catch it somewhere?
> [...]
>
> See above.
>
--
Nancy Palmquist MOS& filePro Training Available
Virtual Software Systems Web Based Training and Consulting
PHONE: (412) 835-9417 Web site: http://www.vss3.com
More information about the Filepro-list
mailing list