Jim,
<Is there another way to skip the HELP button or what am I doing wrong in
the above sequence?>

If Vmeadid is the last field before the HELP button?

If it is do this if you are entering new data:

on exit eep for the last field should be

saverow
newrow
skip to VTYPE
return

If you are entering new data it will skip the help button and save that row
entered clear all the field for a new row.

on the help button name (&HELP) you can use the alt-h to call the help or
pick with the mouse pointer.

If the last field for data entry is 5 character column(just and example
size) if you type in all five characters the eep will run with out an enter!
Just a side note.  If there is less than 5 character a enter is required to
exit the field and run the eep.

If you are editing data you'll need a new form or do a conditional eep.
You'll have to use the nextrow or previous row button to page through the
data or add nextrow to the eep if you are using a different form to edit.
(also can use the f8 for next row for f7 for previous row) or as the eep
does goes to the next row.

the exit eep for the last field for the edit form would look like the
following

nextrow
skip to VTYPE
return


If you want to use the same form to enter and edit data then you need to set
a var before running the form and the eep needs a conditional statement to
know what to do like this
In your code before doing an enter using or edit using you need to set a
var:

Set var vformtype text = '1' -- 1 for enter 2 for edit

jump.eep:
-- for entry form
if vformtype = '1' then
saverow
newrow
skip to (first field or the field you want to go to)
return
endif
-- for edit form
if vformtype = '2' then
nextrow
skip to (first field or the field you want to goto
return
endif

Should work tested on my test DB.

Best regards,

Oma




Reply via email to