Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is the best way to deal with required fields

Status
Not open for further replies.

smitty654

Programmer
Jul 9, 2008
21
CA
I have alot of required fields in my tables. How does one make field required in Delphi. Is it my understanding that you can do this both on the database end(MySQL) and on the client(Delphi 2007)? Thanks for any suggestions.
 
In the DataSet enter the field editor with the object inspector in view. There should be a property titeld required. (I am working within Client Datasets and the property is ther, so I assume it is tables etc);
 
How does this required field property work? Are there tutorials or code snippets on it? Thanks.
 
dont know about mysql but with a ttable component you double click it to bring up the fields editor.

when you select a field in the editor its properties are shown.

there you change required t/f.

then if you try and post data without filling these fields you get a message and focus returns to the required field.

Aaron
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top