I set all the textboxes to Enabled = .F. when I build the form.  I have a
button labelled Edit which has something like the following code:

If This.Caption = 'Edit'
        This.Caption = 'Save'
        ThisForm.SetAll('Enabled', .T., '_textbox')
        ThisForm.cmdCancelEdit.Visible = .T.
Else
        This.Caption = 'Edit'
        ThisForm.SetAll('Enabled', .F., '_textbox')
        ThisForm.cmdCancelEdit.Visible = .F.    
        TABLEUPDATE(MyTable)
Endif 

The Canceledit button has the same code as the Else block except that it has
TABLEREVERT.

The above code has been greatly simplified but you should get the idea.

Regards

John

John Weller
01380 723235
07976 393631


> -----Original Message-----
> From: ProfoxTech [mailto:profoxtech-boun...@leafe.com] On Behalf Of
> Virgil Bierschwale
> Sent: 19 April 2014 23:20
> To: profoxt...@leafe.com
> Subject: nitty gritty stuff
> 
> Ok, I've got my forms built, menus, etc. and its working the way I want it
too,
> except I can't remember for the life of me how to handle the fields on the
> form prior to them hitting the edit button
> 
> 
> 


_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/007001cf5d77$1ae1f0e0$50a5d2a0$@johnweller.co.uk
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to