Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stop Append blank
Message
From
21/11/2001 09:59:39
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00584174
Message ID:
00584467
Views:
28
This message has been marked as a message which has helped to the initial question of the thread.
>My question was about preventing invalid input directly in tables. In forms I use Table buffering and catch all problems gracefully (or, at least, I hope so). However, if user just opens table in command window (use myTable), then append blank, my original procedure didn't prevent from 3 "0" despite the fact, that I have a PK set. I hope, that Steve's solution would work for these situations. I already implemented it, but haven't tested yet.

Nadya,

I don't see any difference here. Default values for a field apply when table is opened in a form, when the user opens the table in the command window, or even when the table is opened indirectly through a view.

Of course, the user can change the value later - but triggers, too, apply both in forms and in the command window.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform