https://bugs.documentfoundation.org/show_bug.cgi?id=161315

--- Comment #2 from Jean-Pierre Ledure <j...@ledure.be> ---
Consider next code:

  sub foo(Optional a, Optional b)
    MsgBox IsEmpty(a)
  end sub

  sub bar
    foo(b := 1)
  end sub

- (1) The message box returns True without any option, or with Option
Compatible
- (2) A syntax error is displayed with Option VBASupport 1

In other words when (1) and the call uses the := syntax, the skipped arguments
contain Empty, not "Missing". Empty means something in this matter.

That's the reason why in ScriptForge, everywhere I test the presence of an
argument to set a default value (hundredths of times ...) I use the
construction
  If IsMissing(a) Or IsEmpty(a) Then a = ...

Please do not change the actual behaviour without good reasons.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to