Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_discuss thread: Recordsets and Classes


Message #1 by "Alan Grobert" <alangrobert@h...> on Fri, 10 May 2002 09:50:20 -0400
I've used the

"public property Set priv_rs(RS)
       Set rsPrivVar = RS
End Property"

to pass a recordset object to a class. When I attempt to set
the private property using "myClass.priv_rs(objRS)" an error
occurs: 'priv_rs is not a property or method of myClass'

What's wrong with this picture?
Alan

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.

Message #2 by "Flummi" <flummi@e...> on Wed, 15 May 2002 16:40:41
> I've used the

"public property Set priv_rs(RS)
       Set rsPrivVar = RS
End Property"

to pass a recordset object to a class. When I attempt to set
the private property using "myClass.priv_rs(objRS)" an error
occurs: 'priv_rs is not a property or method of myClass'

What's wrong with this picture?
Alan

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.

Message #3 by "Flummi" <flummi@e...> on Wed, 15 May 2002 16:41:06
Try:

myClass.priv_rs = objRS

This should work. Otherwise you might have the wrong dll so you might 
wanna unregister the old one and recompile it.

Flummi


> I've used the

"public property Set priv_rs(RS)
       Set rsPrivVar = RS
End Property"

to pass a recordset object to a class. When I attempt to set
the private property using "myClass.priv_rs(objRS)" an error
occurs: 'priv_rs is not a property or method of myClass'

What's wrong with this picture?
Alan

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.

Message #4 by "Alan Grobert" <alangrobert@h...> on Wed, 15 May 2002 14:12:31 -0400
Thank for your help. I did try that and it still fails
to assign the rs to the private property. Do know what .dll
is wrong?
Alan


>From: "Flummi" <flummi@e...>
>Reply-To: "asp_discuss" <asp_discuss@p...>
>To: "asp_discuss" <asp_discuss@p...>
>Subject: [asp_discuss] Re: Recordsets and Classes
>Date: Wed, 15 May 2002 16:41:06
>
>Try:
>
>myClass.priv_rs = objRS
>
>This should work. Otherwise you might have the wrong dll so you might
>wanna unregister the old one and recompile it.
>
>Flummi
>
>
> > I've used the
>
>"public property Set priv_rs(RS)
>        Set rsPrivVar = RS
>End Property"
>
>to pass a recordset object to a class. When I attempt to set
>the private property using "myClass.priv_rs(objRS)" an error
>occurs: 'priv_rs is not a property or method of myClass'
>
>What's wrong with this picture?
>Alan
>
>_________________________________________________________________
>Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
>


_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


  Return to Index