WOW !!!
many thanks Karen
Now all is perfect...
Daniele

  ----- Original Message ----- 
  From: Karen Tellef 
  To: RBASE-L Mailing List 
  Sent: Saturday, June 01, 2013 3:37 PM
  Subject: [RBASE-L] - Re: DB Chech Box in a form


  Are you using the form's "on after start" eep?  That evaluates only once, when
  the form is initially loaded.  So if alpha is not 1700 to begin with, the 
gamma field
  will never be visible.  Nothing will happen if they modify any data in the 
alpha field.

  If it was me, I would make the Gamma field invisible on startup (right-click, 
hide
  on startup).   Keep your on after start eep so that it will display the field 
if 
  alpha = 1700.    Then I would add basically the same code (with a recalc var 
at the
  top) to a "after field exit" eep on the alpha field itself.  That way when 
they exit
  the alpha field it will reevaluate whether to show or hide.

  2 suggestions on syntax:  (1) never dot a variable that is left of the = sign.
  (2)  enclose property parameters in quotes:  'FALSE' / 'TRUE'

  Karen







  -----Original Message-----
  From: Daniele Barbieri <[email protected]>
  To: RBASE-L Mailing List <[email protected]>
  Sent: Sat, Jun 1, 2013 4:05 am
  Subject: [RBASE-L] - DB Chech Box in a form


Hello
Rbase 9.5 (32)
In a form I have a DB Edit integer field called Alpha and a DB Check Box called 
Beta.
During the  EDIT USING formname  if the user enter in the field Alpha 
(initially 
empty) the value 1700,  the DB Check Box Beta must 
be visiblile (should magically appear) otherwise NO.
In the form variable: vAlpha=Alpha
On exit from the field Alpha I've an EEP:
RECALC VARIABLES
RETURN

The component ID for theDB Check Box Beta is GAMMA

In the Form the EEP , On After Start:
IF .vAlpha = 1700 THEN
    PROPERTY GAMMA VISIBLE TRUE
ELSE
   PROPERTY GAMMA VISIBLE FALSE
ENDIF
RETURN

But it does not work

In fact there should be a refresh of the form based on the value entered in the 
field Alpha. How can I do this?
TIA
Daniele Barbieri
B.M.B. Informatica 


Reply via email to