Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to move the cursor(focus) to next record in a grid?
Message
From
03/08/1999 15:39:39
 
 
To
03/08/1999 07:03:52
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00249117
Message ID:
00249392
Views:
23
Dear Tim,
I have include APPEND BLANK already. Maybe I explain more in detail about my problem. The grid is linked with only one database only. Only two columns are enabled(orderno & quanty). When the orderno is typed in, I use the Lostfocus event to allow the searching for the name of the "dish" which is displayed in the grid. The cursor is automatically moved to the quantity column and is ready to allow the entry of quantity. When a number is entered, the total price is displayed in another column of the grid. Again I use the LostFocus event for this purpose. The APPEND BLANK is included here and I issue GO BOTTOM. Then I set the focus back to the orderno column(This may not be necessary!). But the cursor stays in the SAME record and NOT the BLANK RECORD. I have to press the DOWN key to move to blank record for the entry of another orderno WHICH IS VERY INCONVENIENT for the users. Is there any way the move the cursor DOWN to the new record by codes?

P.S. I am using VFP3.0 (there isn't any AllowAddnew in the grid properties).



Thanks so much


Harry Mak
Previous
Reply
Map
View

Click here to load this message in the networking platform