Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Have ENTER key move cursor down?
Message
From
11/02/1999 10:45:48
Kenneth Downs
Secure Data Software, Inc.
New York, United States
 
 
To
11/02/1999 07:19:29
Bill Tetrault
Northern Trust Value Investors
West Palm Beach, Florida, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00186425
Message ID:
00186528
Views:
18
Bill,

Seems like you've gotten a few replies, but here's how I've done it since VFP 3.

In the valid of the last column I put something to this effect:

IF DoDefault()
Thisform.MoveNext &&--Method built into my forms
ENDIF

The trick is to have it only happen for keys the user would press, such as TAB, ENTER, the numbers, or letters. You run into trouble unless you check for specific keys
MyFormClass.MoveNext
IF INLIST(LASTKEY(),13,48,59,50...) OR...
  SKIP
  IF EOF()
    FrameWorkMethod.AddRecord()
  ENDIF
ENDIF
Hope one of the approaches works for you.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform