I am trying to enter code in the MoveComplete event of the ADODataControl
and I get an error compile on the declaration! Here is the error :
Compile error : Procedure declaration does not match description of event or
procedure having the same name
The problem I have is that I have let VB create the header...
I am using VB6.0 SP3 with MDAC 2.1 (the version that came with SP3) on a
Win95 machine. I have IE5 and I'm downloading DCOM95 to make sure that it
is installed.
If anyone has an idea, I would really appreciate!
Eric Demers
ede...@magma.ca
MoveComplete event has the following declaration :
RS_MoveComplete(ByVal adReason As ADODB.EventReasonEnum, ByVal pError
As ADODB.Error, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As
ADODB.Recordset)
RS is the recordset you declare or the ado datacontrol.
For the recordset the delaration is like :
Dim WithEvents RS as ADODB.Recordset
Hope this will help you.
Olivier Guillaumin
Lucas Varity Diesel System
Blois (France)
In article <_Zxe3.4464$m4.15...@news.magma.ca>,
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
That is my problem, I have the same declaration ( even Case Sensitive!!!),
however, I still get the error.
Thanks for the help.
Eric Demers
ede...@magma.ca
<olivier.g...@lucasvarity.com> a écrit dans le message :
7lfbmf$8su$1...@nnrp1.deja.com...
In article <%HLe3.4487$m4.15...@news.magma.ca>,
I had created the project with a previous version of the ADO then "upgraded"
to version 2.1, added my ADODataControl component, and then it crashed.
I then created a new project with ADO 2.1 to see if I could replicate the
problem and the new project worked fine.
So I got into the .VBP file of the new project to see what was the
declaration, compared it to the one on my old one, and "Bingo!" the
declaration was not the same, even if the text associated with it was
identical.
So to fix that problem, create a new project with ADO 2.1 and change the
lines in your real .VBP file to fix the problem, and you'll be using 2.1
without any problems (I hope).
Eric Demers
ede...@cybertech-e.com
<richs...@my-deja.com> a écrit dans le message :
7mifnq$lpi$1...@nnrp1.deja.com...