Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Entering data into grid
Message
From
27/12/2002 06:37:22
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00735860
Message ID:
00736008
Views:
11
Chuck,
To my surprise help for readkey() says it's for backward compatibility use .. instead !!! It's just one another function though doesn't have a true replacement commented out like this. ReadKey() would return 5 (dnarrow, tab) and 15 (enter or filled).

But as I said before if user leaves the cell with mouse those values wouldn't be reliable.

Now let me understand what you want to do. Sum and count would be done no matter how the cell was left ? No matter how the cell was left next row's first cell would get the focus (new record if at last row) ? Or would it advance to next row only in case dnarrow, enter ?

Lostfocus fires all the time so I think it's best place for summing and counting.
For other purpose I wouldn't use textbox's methods but grid's BRCC and ARCC.
Cetin

>>Chuck,
>>>Lastkey() however is last digit typed if you mean field is exited for its >>maxlength is reached.
>
>Cetin,
>No matter what I do, even using "INLIST(LASTKEY(),0,13,24)", the cursor will NOT advance to the next (new) record when maxlength is reached. It stays on the same record.
Ç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