Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Have ENTER key move cursor down?
Message
De
11/02/1999 10:45:48
Kenneth Downs
Secure Data Software, Inc.
New York, États-Unis
 
 
À
11/02/1999 07:19:29
Bill Tetrault
Northern Trust Value Investors
West Palm Beach, Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00186425
Message ID:
00186528
Vues:
17
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform