Positioning Cusor within a Fillin Box

Rick King

New Member
Is there an Easy way in Progress to Position the cursor at a particular point int a fill in box?

eg 01/01/2001 is the value in the Fill in Box, when a user tabs to this field I want the cursor to be repositioned to between the year and month eg 01/01|2001. I have tried a few things in the Entry event but havent found the answer yet...

Rick King
Rick_King@cargill.com
 

Chris Kelleher

Administrator
Staff member
Rick-

You can use CURSOR-OFFSET to do this, just set it to the postition you can the cursor to appear in the entry trigger for that field, eg myDate:CURSOR-OFFSET = 6.

Hope this helps,
Chris
 

Rick King

New Member
I gave SELF:CURSOR-OFFSET = 6(In the Entry trigger) a Try and that isnt working wither, The problem seems to be that when I tab to the field it becomes highlighted and remains highlighted until I click in the field or hit a key. I tried applying an "END" Keyboard Event and a "Backspace" Event in order to get rid of the hightlight but no luck.

Rick
 
Top