Scripting error

Hi,

I need some help. I am running a scape session that fills a dataRecord called(ReadMoreUrl) with a url and then calls a script after each pattern match. My problem is when the dataRecord is filled with the url it has an 'amp;' right after the amper (&) sign so I need to remove it before my script tries to use it. Here is what is in my script (VBScript):

ReadMore = Replace(DataRecord.Get( "ReadMoreUrl" ),"amp;","",1,50)
session.setVariable( "Url", "ReadMore" )
Call session.ScrapeFile( "Classifieds - Follow link scrape" )

Which only produces one thing: an error

"Cannot use parentheses when calling a Sub"

It will work fine without the 1st and 2nd lines except my scrapefile will not find any records because the link is invalid in the ReadMoreUrl

Can you help me out? Any suggestions?

Thanks

John

Scripting error

Hi John,

Like 'scrapeFile', 'setVariable' is a method, and not a function. As such, you should need to change your secong line to the following

Call session.setVariable( "Url", "ReadMore" )

If that doesn't seem to do the trick please feel free to reply back.

Kind regards,

Todd Wilson
[email protected]