Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Funny things About afterrowcolumnchange event
Hi, Folks,
I found a very funny things about the grid AfterRowColChange Event, I wanna check the row changed or column changed by fllowing code, but when the first wait not remed and the 2nd remed, the result is quite right, but when the first remed and the 2nd not, the things changed. Whatever I move in row direction or move in column direction the message always pop out. That's why?
Procedure Grid1.AfterRowColChange
LPARAMETERS nColIndex
LOCAL lsRow,lsCol,lsCol1
lsRow=ALLTRIM(STR(this.ActiveRow))
lsCol=ALLTRIM(STR(this.ActiveColumn))
lsCol1=ALLTRIM(STR(nColIndex))
*!*WAIT WINDOW "ROW:"+lsRow+"; Col:"+lsCol+"; Changed:"+lsCol1 NOWAIT
IF lsCol1=lsCol
WAIT WINDOW "OK" NOWAIT TIMEOUT 3000
ENDIF
DODEFAULT(nColIndex)
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