optional argument from vb

optional argument from vb

I seem to remember that arguments in a call from vb6 must be by value. And I see in the Fortran manual that optional arguments must be by Ref. Does this mean that I can not have an optional argument in a call from vb6? Or if I can, how do I do it?

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

If the optional argument is not used You must pass zero as an address of variable.

If You pass all arguments by value simply set optional argument to value 0 (integer*4 on win32 or integer*8 on x64).FORTRAN routine will expect that address of the optional argument is 0 and it is not used).

I hope it will work.

Leave a Comment

Please sign in to add a comment. Not a member? Join today