Specifies that you can ignore some parameters when you call a procedure.


For each optional parameter, you can give a constant expression as the default value of that parameter. If you give it the value #Null or do not supply a default value, ViviFire uses the default value for the data type of the parameter. If you use the directive «@Option Optional Equals», you must supply a default value.

If the parameter list contains an optional parameter, all parameters after it are also optional. If you use Optional more than one time, the compiler usually shows a warning.

Note: You can also make the equivalent of optional parameters with two or more overloaded procedures. One procedure can have only the mandatory parameters. Then, each subsequent procedure has an additional parameter. See Procedure Overloading for more information.

Applies to



See also