Home > Archive > Getting Started with dBASE > January 2006 > Edit data in a read only form









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Edit data in a read only form
John Barfield

2006-01-03, 8:23 pm

I would like to use Library.wfm as a template for a contacts database. How do I remove the 'read only' attrbute from a copy of that file?

Michael Nuwer [dBVIPS]

2006-01-03, 8:23 pm

John Barfield wrote:
> I would like to use Library.wfm as a template for a contacts database. How do I remove the 'read only' attrbute from a copy of that file?



The form is not really "read only". It has the rowset's autoEdit
property set to false. This means that the rowset must be put into edit
(or append mode) manually.

In the dUFLP you will find a set of buttons in CustButt.cc with many
options to choose form. One of this is a set of editbuttons. Add the
following lines to your copy of library.wfm (add these using the editor
and place them somewhere in the form's constructor, i.e. after the
"Class ..." line and before the first function) and you see what I mean.

set procedure to :dUFLP:Custbutt.cc additive
this.EDITBUTTONS1 = new EDITBUTTONS(this)
with (this.EDITBUTTONS1)
left = 43.0
top = 5.0
width = 18.7
height = 1.4545
endwith


Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com