Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Other Programming > VBScript
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
VBScript For questions and discussions related to VBScript.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VBScript section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 21st, 2006, 11:41 AM
jamara
Guest
 
Posts: n/a
Default error - Object doesn't support this property

I am getting an error "Object doesn't support this property or method" when trying to use RegExp. Has anyone run into this error message and can you tell me what the solution is?

Here is a code snippet if that's helpful:

    Dim ex, aMatch
    ex = New RegExp
    ex.IgnoreCase = False
    ex.Pattern = "^((?<lower>[a-z])|(?<upper>[A-Z])|(?<number>[\d])|(?<symbol>[=.*!@#$&*]).{8,15})+$"
    Set aMatch = ex.Execute(strNewPassword)

    If ex.aMatch(strPassword).Success = False Then
       Err.Description = "Please provide a valid password that contains at least one uppercase letter, one

lowercase letter, one number, one of these special characters =.*!@#$&* and is between 8 and 15 characters."
       Response.Write "<p>" & Err.Description & "</p>"
       Response.Write "<p><a href=""javascript:history.back(1)"">Back</a></p>"
    End If
Thanks!

Reply With Quote
  #2 (permalink)  
Old September 10th, 2006, 05:13 AM
Registered User
 
Join Date: Sep 2006
Location: Bellevue, WA, USA.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi jamara. I ran into a similar problem. I finally found out the issue was with the line:

ex = New RegExp

Needs to read:

Set ex = New RegExp

Such a simple thing I wish the error messages from the runtime were a bit more helpful though.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error-Object does not support doesn't support this bootsy Classic ASP Basics 1 May 25th, 2008 07:14 PM
VB6, COM, Object doesn't support this property... thenoseknows Classic ASP Professional 1 July 12th, 2007 05:54 PM
OBJECT DOESNT SUPPORT THIS PROPERTY OR METHOD KGANESH2006 Classic ASP Basics 4 March 24th, 2006 11:15 AM
Object doesn't support this property or method ASP crmpicco Classic ASP Components 0 March 16th, 2006 01:26 PM



All times are GMT -4. The time now is 07:10 AM.


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