Karen,

 

If found it.  You can set the property on the table to read only and switch it 
back & forth (PROPERTY TABLE tablename 'READONLY FALSE').  Very cool.

 

Paul

 

 

From: [email protected] [mailto:[email protected]] On Behalf Of 
[email protected]
Sent: Friday, December 02, 2011 4:43 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: Switch a Form from Browse to Edit Mode in a Button

 

If there is one, I could use it!   About a year ago I wanted to do this and what
I ended up doing is assigning each control with a Component ID that started 
with the same letter, on form startup did a:   PROPERTY b% READONLY 'TRUE'

Then located a button that said "switch to edit" which would set the 
readonly to False.  At the same time I would change the caption of the button 
to "switch to view" and by doing a GETPROPERTY of the caption I could tell 
what mode to flip back and forth on subsequent clicks of the button.

If I remember right, combo boxes didn't work with "read only" and I had to
separately disable or some other property.  I think it was actually read-only
but you could still drop down the menu and appear to pick an option, it just
wouldn't save it.  The disable (or whatever) took care of that.

Karen


In a message dated 12/2/2011 3:35:40 PM Central Standard Time, 
[email protected] writes: 







It’s late and my brain isn’t functioning clearly.  I thought there was a 
property command we could issue from a button (bit or otherwise) that would 
allow us to switch the current form from Browse to Edit mode.  I want to open a 
form using the command “Browse using formname” so no editing can occur.  Then 
by selecting a button on the form “switch” the form to edit mode.  Am I crazy 
or is this possible?



Thanks in advance,

Paul Buckley



 

 

Reply via email to