'The first parameter is NOT optional so you must call SumAll with at least one argument:
sub SumAll(Value1 as int, Value2=0 as int, Value3=0 as int) as Int
return Value1 + Value2 + Value3
end sub
'In the calling rtn:
x = SumAll() 'This gives syntax error because Value1 parameter is not optional because it does not have a default value.
x = SumAll(123) 'This works
x = SumAll(123,456) 'This works
x = SumAll(123,456,789) 'This works