How to use Intro (Some Troubles)

forum.advanced.programming (1998-2005)
Alberto Aviles

How to use Intro (Some Troubles)

Post by Alberto Aviles » 18 Dec 2004, 19:51

 Posted by:  Alberto Aviles 

we use this option :

On SAM_Create
SalMapEnterToTab( TRUE)

+++++

Actually we can jump to any datafield using intro key , but when whe use On
SAM_Validate, just run the firs one SAM_Validate, and the others don't work

Some one know something about this ...

TNKS...
=C

Jeff Luther
Site Admin
Site Admin
United States of America
Posts: 2385
Joined: 04 Mar 2017, 18:34
Location: Palm Springs, California

Re: How to use Intro (Some Troubles)

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/

Alberto Aviles

Re: How to use Intro (Some Troubles)

Post by Alberto Aviles » 20 Dec 2004, 16:26

 Posted by:  Alberto Aviles 

ok, if we use SalSetFocus(), when we change tab key by the enter key, ( with
the tab key Centura changes the focus between the data fields), then
SAM_Validate, don't work !!! ???

the trouble is that i want to use enter key to change the focus... because
we are usen the numeric path...

Return to “advanced.programming”

Who is online

Users browsing this forum: [Ccbot] and 0 guests