Moving cursor from edit box to edit box (OpenInsight Specific)
At 12 DEC 2001 03:14:12PM a becker wrote:
We want to programmatically move the cursor to the next edit box when a certain number of characters have been typed in.
We have the number of characters with no problem, the got and lost focus with no problem, however, we can not get the cursor to move out of the edit box to the next one. Naturally, we can have the user press the tab or enter key, but how do we do this in the script?
Since we're having so much "fun" attempting various ideas, I'm guessing that the answer is very simple.
Thanks
Andy Becker
ILLINOIS STATE LOTTERY
At 12 DEC 2001 03:44PM [url=http://www.sprezzatura.com" onMouseOver=window.status=Click here to visit our web site?';return(true)]The Sprezzatura Group[/url] wrote:
Have you tried setting the SELECTION property to the beginning of the new edit line?
World Leaders in all things RevSoft
At 12 DEC 2001 05:19PM Oystein Reigem wrote:
Andy,
Use the FOCUS property?
Btw - about checking when the relevant number of characters have been keyed in: What if the user does a paste instead of keying in each character? Would a CHAR handler discover a paste? Or would a CHANGED handler be better? And if the handler discovers too many characters in the field - should it chop of the extra characters and place them in the next field?
Just trying to complicate things for you.
![]()
- Oystein -
At 14 DEC 2001 02:43PM Robert Lee wrote:
Andy
IF condition met THEN x=Send_Event(CtrlEntId, 'LOSTFOCUS')
Robert Lee