Information générale
Titre:
Key Press Event Problem
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement