Arguments Statement (FPScript)
Declares arguments for a formula.
Syntax
Arguments Name1[, Name2]...
The argument names are specified separated by commas.
Remarks
The Arguments statement must be the first statement in a formula. The Arguments statement turns the formula into a function, which must be provided with a list of arguments when called. When the function is called, the values of the argument list are assigned to the function arguments. You do not have to specify all arguments when calling, which means that the argument list that you specify when calling the function can be shorter, or you can omit the arguments within the list. Arguments for which you do not provide a value will have the Empty data type.
Available in
FlexPro View, Basic, Professional, Developer Suite
Examples
Arguments Data, Norm If Norm == Empty Then Norm = 1 End Norm * Data / Maximum(Data) |
Defines a function, e.g. with the name "Normalize" for normalization of a data set. |
Normalize(Signal, 100) |
Normalizes a signal to the value 100. |
Normalize(Signal) |
Normalizes a signal to the value 1. |