Optional parameters in user defined funtions
When you implement IFunction.argumentTypes(), you can specify a QType.cOptionalValueType or QType.cOptionalValueListType. For example a floor function that takes an optional decimal places argument in addition to the regular argument would look like:
public QType[] argumentTypes()
{
return new QType[] {QType.cValueType,
Type.cOptionalValueType};
}
cheers