Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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
Thread Tools Display Modes
  #1 (permalink)  
Old September 2nd, 2004, 10:13 AM
Registered User
Join Date: Sep 2004
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Server.CreateObject Failed

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.

  #2 (permalink)  
Old September 2nd, 2004, 06:12 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41

;;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

A reference for the following may be found at:
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:

       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");
          return false;

Wind is your friend
  #3 (permalink)  
Old October 23rd, 2004, 09:41 AM
Authorized User
Join Date: Oct 2004
Location: sp, sp, Brazil.
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts

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

wagner reatto

Thread Tools
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
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 09:53 AM
How To use server.createobject in c# ranakdinesh C# 0 November 4th, 2005 07:18 AM
Server.CreateObject Failed patwadd Classic ASP Databases 3 February 7th, 2005 04:46 PM

All times are GMT -4. The time now is 11:58 AM.

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