Wrox Programmer Forums
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 15th, 2003, 09:12 AM
Registered User
 
Join Date: Oct 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Fake Response Object

Q: I'm trying to create a *dummy* response object and I get errors implementing the Response objects. My code looks like this:


--------------------------------------------------------------------
Implements Response

Private Property Let Response_ExpiresAbsolute(ByVal RHS As Date)

End Property

Private Property Get Response_ExpiresAbsolute() As Variant

End Property

   :
--------------------------------------------------------------------

I used the drop downs at the top of VB6's code window to create the functions so I'm not sure why I get this error:

--------------------------------------------------------------------
Compile Error:
Definitions of property procedures are inconsistent, or property procedure has an optional parameter, a ParamArray, or invalid Set final parameter
--------------------------------------------------------------------

Any ideas? Thx...


 
Old October 23rd, 2003, 06:09 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The type of the property must be the same in both let and get. In your case, it is Date for Let and Variant for Get
Marco





Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I fake a 404? inad ASP.NET 2.0 Basics 1 November 13th, 2007 09:02 PM
Use Response object inside asp:textbox tag fizzerchris ASP.NET 1.0 and 1.1 Basics 0 August 22nd, 2006 07:24 PM
image rendering via Response object Joxur BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 0 July 25th, 2005 02:15 PM
Reading XMLHTTP response object in VB Script afrika_people Classic ASP XML 0 March 5th, 2005 08:22 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.