Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is this a bug?
Message
From
02/12/2003 13:28:05
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
01/12/2003 21:33:21
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00854879
Message ID:
00855109
Views:
15
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform