Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Blank records in grids
Message
From
16/12/1998 10:36:05
 
 
To
16/12/1998 09:59:32
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00168033
Message ID:
00168058
Views:
25
>I have a grid in a form. There is an add button.
>When a user clicks on add, I append a blank record and then disable
>the add button and enable the save and cancel buttons. I do not
>want the user to move off of the blank record. At this time they
>can. How can I keep the focus on the blank record until they click
>the cancel button or add some text to the record?
>
>Thanks,
>
>Steve Wilson

To keep them in the record, you could add code to the VALID of each textbox. There was a thread in the last week about taking into account the cancel button. I believe it involved code in the lost focus and checking what was clicked on. You could also do something with the BeforeRowColChange (Not sure if I have that exactly) event.

-Michelle
Previous
Reply
Map
View

Click here to load this message in the networking platform