Previous Topic

Next Topic

Book Contents

Book Index

Form Designer Code tab

Navigator > Setup > Form Designer > Code tab

Use the Form Designer Code tab to write code to determine how the form will run. You can enter MaxBasic code, enter the value of an expression property, or select an item from a menu to insert at the pointer position. You can construct statements and expressions. See also Script Editor Shortcut Keys for shortcut combinations. You can also insert Automated code snippets in the Code tab, see Automated Snippets.

To access the Code Editor Context Menu, right-click in the script editor window, or press Shift+F10.

You can write sub routines, that can then be triggered by Component Events.

To change component font properties using MaxBasic, see Font Properties.

MenuPopup

Operators (Alt+O)

Lists all MaxBasic operators.

MenuPopup

Objects (Alt+J)

Lists the objects and components available from the code. Each components on the form will be listed here, and you can select from each component's fields and methods. When you select a property it will appear in the code.

The following objects are available for all forms in Form Designer:

  • Company - details of the Company, such as name and address.
  • Self - details of the form being designed.
  • User - details of the current User, such as User Name.

MenuPopup

Functions (Alt+F)

MaxBasic functions and additional functions. When you select a function that expects arguments, the parentheses and commas for the arguments are shown and the pointer is positioned for the first argument, for example, InStr(|, ).

MenuPopup

Automated (Alt+A)

Lists the Automated Objects available.

MenuPopup

Procedures (Alt+E)

Lists Function and Sub procedures defined in or imported into the script. Use Ctrl+E to open the Procedure List in a separate window.

MenuPopup

Help (Alt+H)

Access related Help topics.

 

Snippet (Alt+T)

Insert a code Snippet. Snippets are listed alphabetically, and the first line of each snippet is displayed.

Buttons

ScriptCheck

Check Code (Alt+C)

Validates the code to ensure it compiles correctly.

Print (Ctrl+P)

Print the code.

Breakpoint (Alt+B)

Set a code breakpoint on the current line. Click again to toggle to clear the breakpoint. You can also click to the right of a line to set or clear a breakpoint.

Hover the mouse over a breakpoint, then right-click to make a breakpoint unavailable, or access the Breakpoint Properties.

If a condition has been set for a breakpoint, it will be shown when you hover over the breakpoint.

In This Section

Form Designer Objects

Form Designer Component Methods

Form Designer Combo Methods

Form Designer Graph Methods

Form Designer Grid Navigator Methods

Form Designer Memo Methods

Form Designer Table Methods

Font Properties