Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I Determine Grid column
Message
From
04/01/2002 06:28:15
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00600488
Message ID:
00600671
Views:
18
>How do I determine when a particular column is highlighted on a row in a grid. For example, I am trying to have my cursor in grid move down a row, if it is at the end of the column for a row (column 4). I want to have the cursor move automatically to next row, column1 if the user hits enter or tab.
>
>
>Thanks
>Nick Patel

Nick,
*Grid.BeforeRowColChange
LPARAMETERS nColIndex
if nColIndex = this.ColumnCount and ;
       !mdown() and inlist(lastkey(),9,13,4) && Tab, enter, RightArrow
  keyboard '{DNARROW}' && Stuff down arrow to KB buffer
endif
This would work in case columns reordered or you're on last row of visible cells too.
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
Next
Reply
Map
View

Click here to load this message in the networking platform