Wrox Programmer Forums
|
Classic ASP Components Discussions specific to components in ASP 3.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Components 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 September 2nd, 2004, 10:13 AM
Registered User
 
Join Date: Sep 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Server.CreateObject Failed

Hello,
I am receiving this error when trying to create the RegEx object.
(Set regEx = Server.CreateObject("VBScript.RegExp"))
I understand that it may be possible that this component is not installed.
Where would I find this dll??
Is the name of the dll VBScript.RegExp??
How can I tell it is installed??

Any help would be greatly appreciated.

 
Old September 2nd, 2004, 06:12 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

;;I am receiving this error
I can not see an error in your post

;;I understand that it may be possible that this component is not installed
What OS are you using, I beleive it's an object?

;;Where would I find this dll
You wont

;;Is the name of the dll VBScript.RegExp
No

A reference for the following may be found at:
http://www.winnetmag.com/WindowsScri...70/pg/2/2.html
-------------------
In VBScript 5.0 and later, the regular expression processor is a COM object called RegExp. As a result, the support for VBScript's regular expressions is language independent.

To use VBScript regular expressions, you need to create an instance of the RegExp object. One way is to use the New keyword in code such as

Set regexp = New RegExp

Another way is to use the CreateObject function with RegExp's programmatic identifier (ProgID) VBScript.RegExp in code such as

Set regexp = CreateObject("VBScript.RegExp")
----------------------

If you are validating an email address may I suggest using JScritp RE's. This is the one I use, it works a treat:

       email=document.addUser.eMail.value;
       var expression=/^([a-zA-Z0-9\-\._]+)@(([a-zA-Z0-9\-_]+\.)+)([a-z]{2,3})$/;
       if(!(expression.test(email)) )
       {
          alert("Please enter a valid email address");
          document.addUser.eMail.select();
          document.addUser.eMail.focus();
          return false;
       }



Wind is your friend
Matt
 
Old October 23rd, 2004, 09:41 AM
Authorized User
 
Join Date: Oct 2004
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default

try install Microsoft Windows Script http://www.microsoft.com/downloads/d...displaylang=en

wagner reatto





Similar Threads
Thread Thread Starter Forum Replies Last Post
What is Server,CreateObject("File.clsFile")? SMM Classic ASP Professional 0 May 7th, 2007 08:31 AM
Server.CreateObject Failed Crystal Report V 8.0 AndrewMoreno Classic ASP Professional 0 December 19th, 2006 10:53 AM
How To use server.createobject in c# ranakdinesh C# 0 November 4th, 2005 08:18 AM
Server.CreateObject Failed patwadd Classic ASP Databases 3 February 7th, 2005 05:46 PM





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