>Would appreciate someone to point me where I could get information on creating command buttons. I am still a newbie at VFP and doing well copying routines from other projects but now trying to create my own form.
>
>I have created a simple form with fields from a table and want to edit existing records and add new records. I have noticed that a sample form I have seen will not allow any field to be modified unless the edit button or add button is pressed. I realize that individual fields have the enable function but how does one get all the fields enabled or disabled based on a command button?
-Drop few textbox controls on form and set their enabled to .f.
-Drop a commandbutton control from controls toolbar on form
-Dblclick to newly dropped button
-Now you're in click event code window
-Write your code. ie :
thisform.SetAll('Enabled',.t.,'Textbox')
thisform.text1.Setfocus()
-Run to test.
Cetin