Hi,
I am a very old chemical engineer who just put away my slide rule.
In a program I am writing, I have:

Dim VV(30) As Double, SHR(30) As Double, SGR(30) As Double
.
.
I = 1
Call PHYSPROP(VV(), SHR(), SGR(), TF(), 1, 0, 0, 0, 0, I)

The system says that VV() is somehow wrong. "Type mismatch: array or user-defined type expected."

This works in Quick Basic. What is the problem?

The problem is that the procedure (function or sub) called PHYSPROP, expects something other than a double. Are you sure it's VV(), or is it possible it is the 1, 0, 0, 0, 0, 0, 1?

The problem is that the procedure (function or sub) called PHYSPROP, expects something other than a double. Are you sure it's VV(), or is it possible it is the 1, 0, 0, 0, 0, 0, 1?

Hi Comatose,

I have found that I did not define the VV() array, etc in the sub routines. Also, I did not make all the arrayed variables public. And so on... thanks.

:) Glad you got it solved. If so, you can mark this thread "solved" down at the bottom.