B
B. Chernick
I have a VB6 project group, one main windows exe and a half dozen DLLs. I'm
trying to compile the DLLs. I am rather rusty in VB6.
The problem is this. One of the DLLs is intended to create instances of the
Project 2000 app. As such it references Microsoft Project 9.0 Object
Library. In this DLL are 2 variables, call them VarA and VarB, declared as
follows:
Dim VarA as Day
Dim VarB as Day
The compile fails at the line 'VarA = VarB' with the error message 'Invalid
use of Property.'
If I check the properties of VarA or VarB, I seem to looking at the
MSProject.Day's properties. If I examine 'Day' in the VarA/VarB declarations
using the Object Browser, it is identified as Function Day, Member of
VBA.DateTime. So far as I know, this is old and fairly reliable legacy code
that has been in use for a long time.
Suggestions?
trying to compile the DLLs. I am rather rusty in VB6.
The problem is this. One of the DLLs is intended to create instances of the
Project 2000 app. As such it references Microsoft Project 9.0 Object
Library. In this DLL are 2 variables, call them VarA and VarB, declared as
follows:
Dim VarA as Day
Dim VarB as Day
The compile fails at the line 'VarA = VarB' with the error message 'Invalid
use of Property.'
If I check the properties of VarA or VarB, I seem to looking at the
MSProject.Day's properties. If I examine 'Day' in the VarA/VarB declarations
using the Object Browser, it is identified as Function Day, Member of
VBA.DateTime. So far as I know, this is old and fairly reliable legacy code
that has been in use for a long time.
Suggestions?