DISABLE UNLESS-HIDDENALL EXCEPT fieldfield WHEN expressionframe-phraseALL EXCEPT fieldfield WHEN expressionA field-level widget to be disabled. If you use the WHEN option, then the field is disabled only if expression is TRUE when the DISABLE statement is executed. The expression must evaluate to a LOGICAL value.The frame that contains the widgets to disable. If you omit frame-phrase, the default frame for the current block is assumed.You cannot use the IN WINDOW option of the frame phrase within a DISABLE statement. For more information on frame-phrase, see the Frame phrase reference entry.In the following example, the CustNum field and the Quit button are initially active. When you press GO in the CustNum field, that field becomes disabled and the Save and Undo buttons and the CreditLimit field are enabled. If you choose either the Save or Undo button, those buttons and the CreditLimit field are again disabled and the CustNum field is enabled again.
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |