0

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?

2
Contributors
3
Replies
5
Views
8 Years
Discussion Span
Last Post by Comatose
0

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?

0

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.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.