How Can We Help?
< All Topics
Print

FORM SET

Dynamically Modifying Form Attributes

Syntax #1: Changing Attributes of Open Forms or Fields

Command: FORM SET («option») «object»

Parameters:

  • option:
    • [NOT] ABBREVIATE, [NOT] AUTOCLEAR, [NOT] AUTOSKIP, [UN] AVAILABLE, [NOT] BOLD, [NOT] CLICK, [NOT] DOUBLECLICK, EVENT eventName, FILLCOLOR color, FONT fontname, [NOT] GOTFOCUS, GUARDED, [NOT] IMMEDIATELY REQUIRED, [IN]VISIBLE, [NOT] ITALIC, LABEL label, [NOT] LOSTFOCUS, [NOT] LOSTFOCUSMODIFIED, [NOT] MODIFIED, MOUSEPOINTER fileName, NORMAL, PENCOLOR color, POINTSIZE n, PROTECTED, [NOT] REQUIRED, RESET, [NOT] REVERSE, [NOT] RIGHTCLICK, [NOT] SCROLL, SCROLL LINE n, SCROLL MAX n, SCROLL MIN n, SCROLL PAGE n, [NOT] STRIKEOUT, [NOT] SUPPRESS, [NOT] VALIDATE, VERB verbName, VISIBLE, [NOT] UNDERLINE
    • Except for NORMAL and RESET, each option affects only one attribute.
  • object:
    • form: Name of an open form or display in the current window. Specify a particular instance by appending the instance number in brackets.
    • formfield: Name of a form field. Specify a particular instance by appending the instance number in brackets.
    • ([exp1], [exp2], [exp3]): Positive integers or expressions evaluating to positive integers, identifying a particular form or form field. exp1 identifies the form number; exp2, the field number; exp3, the instance of the form or form field.

Syntax #2: Applying Attributes to Form Fields with Focus

Command: FORM SET («option») CURSOR

Parameters:

  • option:
    • [NOT] BOLD, FILLCOLOR color, [IN]VISIBLE, [NOT] ITALIC, NORMAL, PENCOLOR color, [NOT] REVERSE, [NOT] STRIKEOUT, [NOT] SUPPRESS, [NOT] UNDERLINE
    • Except for NORMAL, each option affects only one attribute.
  • CURSOR: Options are dynamically added to a form field when it gains focus and restored to the previous appearance when it loses focus.

Comments

  • NORMAL: Sets objects to an unsuppressed, visible, and non-reversed condition.
  • RESET: Resets objects to their initial state when the forms were opened.
  • Scrollbars:
    • MIN and MAX values define the range of acceptable values.
    • LINE represents the amount of space the thumb “jumps” when arrows are clicked.
    • PAGE represents the size of the thumb, usually a percentage of one “line”.

Example Commands

  • Setting attributes of fields:
  form set (reset) fAddEmp.EmpNum
  form set (italic lostfocus) fAddEmp.EmpNum
  form set (not lostfocus) fAddEmp.EmpNum
  form set (lostfocus) fAddEmp.EmpNum
  form set (bold) cursor  % displays the focus field in bold font
  • Setting attributes of forms:
  form set (reset) fAddEmp[3]
  form set (italic) (2,,3)
  form set (not scroll not required lostfocus) fEmps
  • Setting scrollbar attributes:
  form set (scroll page 8) fFileDir.UpDnBar
  form set (scroll max 50) fFileDir.LfRtBar

See Also

  • FORM SET SCROLL

2 thoughts on “FORM SET

Leave a Reply

Your email address will not be published. Required fields are marked *

en_CAEnglish