You need an AFTER START EEP that looks like this. ON BEFORE doesn't work for 
me. I use id
typically for a form with an ID field in it, for example customers



SWITCH (.rbti_form_mode)
CASE 'edit'
CASE 'browse
  PROPERTY CustID ENABLED 'FALSE'
  BREAK
CASE 'enter'
  PROPERTY CustID ENABLED 'TRUE'
  BREAK
ENDSW
RETURN

--- James Hageman <[EMAIL PROTECTED]> wrote:

> Is there a way in a form's BEFORE START EEP, to know if the form was 
> called using an EDIT USING [formname] or BROWSE USING [formname]?
> 
> Using Property, GetProperty, cval()?
> 
> I know I could do the same thing by setting up global variables and 
> such, but I would like the form to dynamically be able to tell if it is 
> in edit mode or view only mode
> 
> James
> 
> 


Albert Berry 
Management Consultant
RR2 - 1252 Ponderosa Drive
Sparwood BC, V0B 2G2 
Canada
(250) 425-5806
(250) 425-7259
(708) 575-3952 (fax)
[EMAIL PROTECTED]

Reply via email to