Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is this a bug?
Message
De
02/12/2003 13:28:05
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
01/12/2003 21:33:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00854879
Message ID:
00855109
Vues:
14
>Ok, in my grid I want the user go to next row whenever he hits enter on the last column, so I put this code in the beforeRowColChange event :
>
>LPARAMETERS nColIndex
>
>IF THIS.ACTIVECOLUMN==THIS.COLUMNCOUNT .AND. LASTKEY()==13
>THIS.ACTIVATECELL(THIS.ACTIVEROW+1,1)
>
>ELSE
>DODEFAULT(nColIndex)
>ENDIF
>
>
>But strangely the code only works within the first 13 rows of the grid, What could be wrong?
>
>TIA

Roman,
ActivateCell's nRow and nCol parameters are indexers to the visible part of grid.
What about a simple code in AftreRowColChange :
LPARAMETERS nColIndex
If nColIndex = 1 and Lastkey()=13 and !Mdown()
 Keyboard '{DNARROW}'
EndIf
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform