User Tools

Site Tools


defining_procedure_formulas.htm
Navigation:  How To's and Troubleshooting > How to… >====== Defining Procedure Formulas ====== Previous pageReturn to chapter overviewNext page

Creating conditional expressions with the Formula Editor actually creates structures in the source code. There are three structures you can create with the Formula Editor–a simple assignment expression, or an IF or a CASE structure. You can also nest either of these structures, creating complex conditional statements.

The Formula Editor creates simple (unconditional) assignments, the Conditionals dialog creates complex conditional assignments, and the Formulas dialog manages these formulaic assignments for your procedure. See:

How to Create a Simple Assignment Expression

How to Create a Complex Assignment Expression

Usually, you'll want to display the result of your assignment in a string control in a window or report. To display it in a window:

1.Press the Window button to open the Window Designer.

2.Select the STRING control from the controls Toolbox, and DRAG to the window to place the control.

3.With the new string control selected, choose View C6H0013.jpg Properties (or RIGHT-CLICK on the string and choose Properties from the popup menu).

4.Set the VariableString property to TRUE in the Properties Pad dialog.

5.Highlight the Use property and press the ellipsis button to select the variable which contains the result of your formula.

6.Type a valid display picture in the Text property field.

7.Choose Save and Close to close the Window Designer and return to the Procedure Properties dialog.

defining_procedure_formulas.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1