IIS ASP - Code produces "sub" error: WHY?

This is Interesting: Free IT Magazines  
Home > Archive > IIS ASP > July 2005 > Code produces "sub" error: WHY?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Code produces "sub" error: WHY?
Phil Powell

2005-07-30, 5:50 pm

[CODE]
Dim brinksterAdRemoveRegexp
set brinksterAdRemoveRegexp = new RegExp
brinksterAdRemoveRegexp.Pattern =
"(<!-{2,}[\s\t]*BEGIN.+[\n\r\s\t]*END.+PLEASE REMOVE[\s\t]*-{2,}> )"
brinksterAdRemoveRegexp.Global = TRUE
brinksterAdRemoveRegexp.IgnoreCase = TRUE

brinksterAdRemoveRegexp.Replace(bandOriginDropdown, "")
brinksterAdRemoveRegexp.Replace(bandStyleTextField, "")
brinksterAdRemoveRegexp.Replace(bandDescriptionTextField, "")
[/CODE]

Produces this error:

Microsoft VBScript compilation error '800a0414'

Cannot use parentheses when calling a Sub

/soa/soa_samp.asp, line 104

brinksterAdRemoveRegexp.Replace(bandOriginDropdown, "")

USAGE: Classic ASP, IIS 5.0

Can someone give me an idea what on earth I'm doing wrong? I'm simply
trying to remove some built-in HTML text that I receive whenever I do a
remote scrape to a particular site.

Thanx
Phil

Phil Powell

2005-07-30, 5:50 pm

Never mind, I'm an idiot.

Thanx
Phil

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com