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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to edit a form

Status
Not open for further replies.

smartglass

IS-IT--Management
Mar 14, 2006
33
GB
Please excuse my ignorance but I am trying to set all components of a form (including a grid) to be editable (ie can add or amend records), and save the record. My users are used to simply keying in data and the edit/save process is causing problems. I have at least 4 vfp manuals and not one is telling me how to set the form to allow simple data entry! Surely I am missing something here....
Thanks in advance.
 
You want all the controls on your form to be enables at the start? Check SetAll() in the help file.
For example :
Code:
thisform.setall("enabled",.t.,"textbox")
This will set all texboxes enabled in your form. Do the same for all orther controls.
Do not use the form wizard to design your forms, as the wizard makes all controls read-only at the start of the form.


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
ReFox XI (www.mcrgsoftware.com)
 
"the edit/save process is causing problems"

We could use more information to give you better suggestions.

When you say "causing problems" are you meaning:
* An error is being displayed?
* Are the users prevented from entering data into the form Textboxes and Grid?
* The data is not being saved to the back-end?
* Is the data all being over-written into the fields of the same record?
* Or what?

If an error is being displayed, what is it?

If the users are able to type data into the fields, then the Enabled property is most likely not a problem.

If the data is not being written to the back-end data table fields, then how is the data being bound to the table or is it supposed to be updated by the execution of some button being clicked?

With more information, we can better answer your question.

Good Luck,
JRB-Bldr
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top