User Tools

Site Tools


restrict_define_section_use_constraints_.htm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
restrict_define_section_use_constraints_.htm [2022/04/28 02:17] – Code Format carlbarnesrestrict_define_section_use_constraints_.htm [2022/04/28 02:32] (current) – More code carlbarnes
Line 38: Line 38:
  %MyField{PROP:Width} = %NewWidth  %MyField{PROP:Width} = %NewWidth
  %MyField{PROP:Height} = %NewHeight  %MyField{PROP:Height} = %NewHeight
 +</code>
 +
 +<code>
 +#CODE(ControlValueValidation,'Control Value Validation')
 +#RESTRICT
 +  #CASE(%ControlType)
 +  #OF('ENTRY')
 +  #OROF('SPIN')
 +  #OROF('COMBO')
 +    #CASE(%ControlEvent)
 +    #OF('Accepted')
 +    #OROF('Selected')
 +      #ACCEPT
 +    #ELSE
 +      #REJECT
 +    #ENDCASE
 +  #ELSE
 +    #REJECT
 +  #ENDCASE
 +#ENDRESTRICT
 +#DISPLAY('This Code Template is used to perform a control value')
 +</code>
 +
 +<code>
 +#CONTROL(PauseButton,'Pause the Process'),WINDOW
 +#RESTRICT
 +  #IF ( UPPER(%ProcedureTemplate) = 'REPORT' OR UPPER(%ProcedureTemplate) = 'PROCESS' )
 +    #ACCEPT
 +  #ELSE
 +    #REJECT
 +  #ENDIF
 +#ENDRESTRICT
 +  #PROMPT('Pause Text',@S20),%PauseText,DEFAULT('Pause')
 +  #PROMPT('Restart Text',@S20),%RestartText,DEFAULT('Restart')
 </code> </code>
  
 **See Also:     **[[ accept  section valid for use .htm|#ACCEPT]] ,[[ reject  section invalid for use .htm|#REJECT]] **See Also:     **[[ accept  section valid for use .htm|#ACCEPT]] ,[[ reject  section invalid for use .htm|#REJECT]]
  
restrict_define_section_use_constraints_.htm.txt · Last modified: 2022/04/28 02:32 by carlbarnes