obalSet: Functions.PreInitializeReturnVariable = No
Function MyFunc(X, Optional Y, Optional Z=20)
    Dim subLocal
    subLocal = X + Y + Z + moduleGlobal
    moduleGlobal2 = moduleGlobal2 + 1
    MyFunc = subLocal*10
End Function
' VB2PY-Unset: Functions.PreInitializeReturnVariable 

a = MyFunc(1, 2)
a = MyFunc(1, Z:=10)
</pre>
</div>
</div>
</div>
</body>
</html>
