Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

optional argument from vb

wjturner
Beginner
422 Views

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?

0 Kudos
1 Reply
ZlamalJakub
New Contributor III
422 Views

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.

0 Kudos
Reply