The form messages task provides the ability to create messages
that can be used in controls to indicate when users have typed in
values which aren't valid.
To Create a Form Message
- Click the "Add" button on the command bar - a new
form message is added to the list.
- Either, type a rule into the list, or press return and click
the "Build" button on the command bar to launch the rules
To Build a Rule for a Form Message
- Select the form message to edit in the list.
- Click the "Build" button on the command bar to launch the rules
To Delete a Form Message
- Select the form message to delete in the list.
- Click the "Delete" button on the command bar.
To Use a Form Message
- Make a note of the number of the form message to use.
- Open the form designer, and select the form containing the
control that is going to use the form message.
- Select the control, and find the "Error Result" property in the
- Build a rule for the "Error Result" property which returns the
message number if the control's value isn't correct.
For example, if you wanted to check whether a text box had a
certain value you might write a rule like:
IF(TheTextBoxReturn= "Expected Value",0, 1)
Which would return no error (0) if the value of the text box is
"Expected Value", otherwise it will return the number of a message
- in this case 1.
Alternative way to create a form message
Form messages can also be constructed in the same way as
in DriveWorks Solo.
- Select a form control and build a rule form the "Error
- The rule could look something like this:
IF(OR(HeightReturn>HeightMax, HeightReturn<HeightMin), "Enter a Height between "&HeightMin& " and "&HeightMax, "")