Post
by Jeff Luther » 19 Dec 2004, 19:36
Posted by: Jeff Luther
Well, SAM_Validate is only sent to the current field which has just
been edited, when the user leaves/exits that field. If you trap
SAM_Validate, then your Return statement at the end
of your own validation code tells TD if it should go to the next
field (Return VALIDATE_Ok) or if there is an error your code saw and
your code (Return VALIDATE_Cancel). Then TD returns the focus to that field.
I don't know what you mean by the 'intro key' but if you need to have
the SAM_Validate msg. sent to all fields, then you can send it in your
code by calling SalSendMsgToChildren(), like this:
Call SalSendMsgToChildren( hWndForm, SAM_Validate, , ).
If you do, be sure to read Help for SAM_Validate so you know what the
wParam and lParam values should be, in case you use those values when
you trap SAM_Validate.
Best Regards,
Jeff Luther/PC Design
www.pulpcards.com/gupta/