Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Entering data into grid
Message
From
27/12/2002 10:59:50
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00735860
Message ID:
00736089
Views:
14
>>Would you try this (I didn't yet) :
>>
>>*Grid.BeforeRowColChange
>>lparameters nColIndex
>>if this.columns(nColIndex).Columnorder = this.ColumnCount ;
>>  and !mdown() ;
>>  and (readkey()=15 OR inlist(lastkey(),4)) && Might add other keys
>>  keyboard '{DNARROW}'
>>endif
>>
Cetin
>
>Cetin
>I really appreciate your help. I used a modified version of
>your code in BRCC that does just I want I wanted.
>
>IF READKEY() = 15 AND nColIndex = This.ColumnCount
>	KEYBOARD '{DNARROW}'
>ENDIF
>
>
>You have also educated on some other features of the grid that I was
>not aware of. You would think the VFP team would have updated that function or at least provided a way to change that default behavior.
>Again, Thanks, Chuck

Chuck,
Glad it worked :) Yes it was my mistake not to just use :
nColIndex = This.ColumnCount
PS: Do not drop !mdown() check. Otherwise in case last readkey() is 15 and user uses mouse to click somewhere would get an unexpected dnarrow.
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