Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Other Programming > VBScript
|
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 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
  #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
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





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





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