Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Prevent the addition of a blank record
Message
 
 
To
19/04/2004 16:24:28
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00896266
Message ID:
00896341
Views:
25
Claude,

Does your form have a Save() method that gets called before you commit the changes? It would be easy to add code there to test for this.

If you have an Add New button you can check to see if there is already a blanked record avaiable to be used. If you are using table buffering newly added rows will have a negative recno() value which makes them pretty easy to find.

>I am trying to modify an existing form so that blank records are not added.
>
>What is the best way to do this?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform