Looked at eval function. Was thinking execglobal had the option of reading a 
file as well as executing a specified string. The eval function in JS could do 
this but it looks like I would have to code to read the file into a string 
before passing it to the eval function.


-----Original Message-----
From: Aaron Smith [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 04, 2008 10:53 AM
To: [email protected]
Subject: Re: Is there an equivalent to execglobal in JS?

Jay,

I believe you're looking for the eval function.

VBScript: ExecuteGlobal "speak 123"
JScript: eval("speak(123)");

Aaron

Macarty, Jay {PBSG} wrote:
> Aaron,
>
> I read your blog on using execglobal in VBScript and was wondering if
> Jscript supports a similar function. Didn't see it in the doc I had.
>
>
>

--
To insure that you receive proper support, please include all past 
correspondence (where applicable), and any relevant information pertinent to 
your situation when submitting a problem report to the GW Micro Technical 
Support Team.

Aaron Smith
GW Micro
Phone: 260/489-3671
Fax: 260/489-2608
WWW: http://www.gwmicro.com
FTP: ftp://ftp.gwmicro.com
Technical Support & Web Development

Reply via email to