Re: strange arguments passing problem (from vba to fortran dll)
- From: dpb <bozarth.d@xxxxxxxxx>
- Date: 30 May 2007 05:59:58 -0700
On May 29, 4:57 pm, formulae translator <liwei19742...@xxxxxxxxx>
wrote:
....
I can NOT define more than one array in one line.
It's so strange because I never heard anyone mentioned this.
It's not that you cannot define more than one array (any variable
type, actually) on one line but that the syntax
Dim A As Integer, B
results in variable B being a Variant as it was not provided a type
and therefore, defaults to Variant. This is documented in VB albeit
in older versions a little obtusely but is well discussed in VB-
related newsgroups.
So, from your original posting,
Dim f_max, ppw As Double
Dim i, j, nt_out, nlayer, n_ma As Long
Static control(7), ma(100) As Long
....
Dim out_a(10000, 100)
each of the variables except in the first three lines are Variants
with the exception of the last one on each line which. In the last
line out_a is also a Variant array.
I'll make a side note for the future that if you had pared your
example down to something approaching the near minimum to demonstrate
the problem on the first post I probably would have taken the time to
look at it enough and spotted the issue. As it was, there was so much
stuff posted I didn't look at any of it.
.
- Follow-Ups:
- References:
- strange arguments passing problem (from vba to fortran dll)
- From: formulae translator
- Re: strange arguments passing problem (from vba to fortran dll)
- From: Arjen Markus
- Re: strange arguments passing problem (from vba to fortran dll)
- From: formulae translator
- Re: strange arguments passing problem (from vba to fortran dll)
- From: Louis Krupp
- Re: strange arguments passing problem (from vba to fortran dll)
- From: formulae translator
- strange arguments passing problem (from vba to fortran dll)
- Prev by Date: Re: trailing double underscores
- Next by Date: overloaded cant be distinguished by return values?
- Previous by thread: Re: strange arguments passing problem (from vba to fortran dll)
- Next by thread: Re: strange arguments passing problem (from vba to fortran dll)
- Index(es):
Relevant Pages
|