Peter:

The basic sequence should be VGETNEXTFORM, VINITFORM, VSHOWFORM,
VPUTBUFFER, VREADFIELDS, VFIELDEDITS, VGETBUFFER, VFINISHFORM. This is the
norm when you press the enter key.

However, when you press an fkey your logic is probably not executing the
VREADFIELDS and VFIELDEDITS which is what is missing.

Before your call to VFIELDEDITS set com-status and com-numerrs to zero
every time, regardless of whether you press enter or an fkey.

I love VPLUS, it's great.......!

HTH,
Brian.
On Fri, 11 Feb 2005 11:02:59 -0600, Peter Smithson
<[log in to unmask]> wrote:

> Hi,
>
>I can't find the bit in the documentation which explains what I'm
>seeing.  I'm sure it's in there as the VPLUS documentation from HP seems
>to be excellent!
>
>I have a required field in my form.  I use VSETERROR on it so that it's
>highlighted.  I call VREADFIELDS and then VFIELDEDITS and check the
>numerrs in the com area.
>
>If I press ENTER then numerrs is set.  If I press a function key,
>numerrs isn't.
>
>I can only guess that VFIELDEDITS isn't ran if a function key is
>pressed?  But I'm not sure about that as numerrs is set if I don't have
>the VSETERROR.
>
>I know there's something about not incrementing numerrs if the field is
>already in error which would explain why it doesn't error when F2 is hit
>but why does it error when I hit enter?
>
>Thanks.
>
>Peter
>--
>http://www.beluga.freeserve.co.uk
>
>* To join/leave the list, search archives, change list settings, *
>* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *