Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Key Press Event Problem
Message
De
08/03/2001 15:09:43
David Brunelle
Université de Sherbrooke
Sherbrooke, Québec, Canada
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Key Press Event Problem
Divers
Thread ID:
00483294
Message ID:
00483294
Vues:
44
Ok. I have a form and in this form, I need record the start, end , and length of the selection of one text box into another text box.. Here is the code I have in the Keypressed Event of my text box.


DODEFAULT()
IF INLIST(nKeyCode,4,19,54,52) && the arrow keys
lnTotal = this.selstart + this.sellength
thisform.lblpos.caption = ;
"start : " + STR(this.selstart)
"End : " + STR(lnTotal)
"Total :" + STR(this.sellength)
ENDIF


When I do this however, it seem that it takes not the current selstart and sellenght, but the one of the previous key pressed event. Is there anyway to solve this?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform