2.3.3 How Is the Code Different in a Function and a Form?

Let's return to the marriage status example to see the differences between the code used in a LANSA function and a Visual LANSA form. Both the example function and the example form can be used to change and delete marriage status information.

Note that all validation rules for both the function and the form are defined as rules in the repository.

LANSA Function

Visual LANSA Form

Code Comparison