- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page