VBScript Eval function doesn't work properly 
Author Message
 VBScript Eval function doesn't work properly

Quote:

> I tried to use Eval function in an ASP page.
> This is the code I wrote (note it is at server-side):

> <SCRIPT LANGUAGE=VBScript RUNAT=Server>

> Sub Solver()
> dim res
>     res = Eval ("1=0")
> End Sub

> </SCRIPT>

> but in my browser this message is show:

> Microsoft VBScript runtime error '800a000d'

> Type mismatch: 'Eval'

> /try.asp, line 17

> This error message doesn't appare if I call Eval function at client-side
> specifing RUNAT=Client in the script header.

> Am I in wrong?
> Is this a bug?
> Or Eval doesn't work at server-side?  (I hope no...  I need to use it at
> server-side!)

> (Sorry my english; it isn't good)

> Thanks in advance,
> Andrea Marchetto

According to the documentation, the Eval function requires version 5 of
the VBScript engine.  My guess is that your server is running version 3
(the one that came with WSH v1.0).  Either switch to the Execute
statement or update the VBScript engine on your server (if that's
possible).

  Execute("res = 1=0")

Tom Lavedas
-----------
http://www.*-*-*.com/ ~tglbatch/



Tue, 22 Apr 2003 03:00:00 GMT  
 VBScript Eval function doesn't work properly
I tried to use Eval function in an ASP page.
This is the code I wrote (note it is at server-side):

<SCRIPT LANGUAGE=vbscript RUNAT=Server>

Sub Solver()
dim res
    res = Eval ("1=0")
End Sub

</SCRIPT>

but in my browser this message is show:

Microsoft VBScript runtime error '800a000d'

Type mismatch: 'Eval'

/try.asp, line 17

This error message doesn't appare if I call Eval function at client-side
specifing RUNAT=Client in the script header.

Am I in wrong?
Is this a bug?
Or Eval doesn't work at server-side?  (I hope no...  I need to use it at
server-side!)

(Sorry my english; it isn't good)

Thanks in advance,
Andrea Marchetto



Wed, 23 Apr 2003 00:12:34 GMT  
 VBScript Eval function doesn't work properly

FYI - Execute and ExecuteGlobal didn't arrive until version 5.0 as well...

--
Michael Harris
Microsoft.MVP.Scripting
--

Quote:


> > I tried to use Eval function in an ASP page.
> > This is the code I wrote (note it is at server-side):

> > <SCRIPT LANGUAGE=vbscript RUNAT=Server>

> > Sub Solver()
> > dim res
> >     res = Eval ("1=0")
> > End Sub

> > </SCRIPT>

> > but in my browser this message is show:

> > Microsoft VBScript runtime error '800a000d'

> > Type mismatch: 'Eval'

> > /try.asp, line 17

> > This error message doesn't appare if I call Eval function at client-side
> > specifing RUNAT=Client in the script header.

> > Am I in wrong?
> > Is this a bug?
> > Or Eval doesn't work at server-side?  (I hope no...  I need to use it at
> > server-side!)

> > (Sorry my english; it isn't good)

> > Thanks in advance,
> > Andrea Marchetto

> According to the documentation, the Eval function requires version 5 of
> the VBScript engine.  My guess is that your server is running version 3
> (the one that came with WSH v1.0).  Either switch to the Execute
> statement or update the VBScript engine on your server (if that's
> possible).

>   Execute("res = 1=0")

> Tom Lavedas
> -----------
> http://www.pressroom.com/~tglbatch/



Wed, 23 Apr 2003 03:00:00 GMT  
 VBScript Eval function doesn't work properly
Sorry, I was led astray by the documentation.  The V 5.5 documentation
states that ExecuteGlobal requires version 1 on it's main explanation
page (though it does say version 5 in the Version Information table.)

Tom Lavedas
-----------
http://www.pressroom.com/~tglbatch/

Quote:

> FYI - Execute and ExecuteGlobal didn't arrive until version 5.0 as well...

> --
> Michael Harris
> Microsoft.MVP.Scripting
> --


> > > I tried to use Eval function in an ASP page.
> > > This is the code I wrote (note it is at server-side):

> > > <SCRIPT LANGUAGE=vbscript RUNAT=Server>

> > > Sub Solver()
> > > dim res
> > >     res = Eval ("1=0")
> > > End Sub

> > > </SCRIPT>

> > > but in my browser this message is show:

> > > Microsoft VBScript runtime error '800a000d'

> > > Type mismatch: 'Eval'

> > > /try.asp, line 17

> > > This error message doesn't appare if I call Eval function at client-side
> > > specifing RUNAT=Client in the script header.

> > > Am I in wrong?
> > > Is this a bug?
> > > Or Eval doesn't work at server-side?  (I hope no...  I need to use it at
> > > server-side!)

> > > (Sorry my english; it isn't good)

> > > Thanks in advance,
> > > Andrea Marchetto

> > According to the documentation, the Eval function requires version 5 of
> > the VBScript engine.  My guess is that your server is running version 3
> > (the one that came with WSH v1.0).  Either switch to the Execute
> > statement or update the VBScript engine on your server (if that's
> > possible).

> >   Execute("res = 1=0")

> > Tom Lavedas
> > -----------
> > http://www.pressroom.com/~tglbatch/



Fri, 25 Apr 2003 03:00:00 GMT  
 VBScript Eval function doesn't work properly

Quote:

> Sorry, I was led astray by the documentation.  The V 5.5 documentation
> states that ExecuteGlobal requires version 1 on it's main explanation
> page (though it does say version 5 in the Version Information table.)

Now *that's* funny ;-)...  It probably took at least 2 revs of the docs after 5.0 released to even
get it _in_ the docs...

--
Michael Harris
Microsoft.MVP.Scripting
--



Fri, 25 Apr 2003 03:00:00 GMT  
 VBScript Eval function doesn't work properly

You were right, I update VBScript engine version 5 on my server and
magically the Eval function works!!!

Thanks a lot,
Andrea Marchetto



Quote:

> > I tried to use Eval function in an ASP page.
> > This is the code I wrote (note it is at server-side):

> > <SCRIPT LANGUAGE=vbscript RUNAT=Server>

> > Sub Solver()
> > dim res
> >     res = Eval ("1=0")
> > End Sub

> > </SCRIPT>

> > but in my browser this message is show:

> > Microsoft VBScript runtime error '800a000d'

> > Type mismatch: 'Eval'

> > /try.asp, line 17

> > This error message doesn't appare if I call Eval function at client-side
> > specifing RUNAT=Client in the script header.

> > Am I in wrong?
> > Is this a bug?
> > Or Eval doesn't work at server-side?  (I hope no...  I need to use it at
> > server-side!)

> > (Sorry my english; it isn't good)

> > Thanks in advance,
> > Andrea Marchetto

> According to the documentation, the Eval function requires version 5 of
> the VBScript engine.  My guess is that your server is running version 3
> (the one that came with WSH v1.0).  Either switch to the Execute
> statement or update the VBScript engine on your server (if that's
> possible).

>   Execute("res = 1=0")

> Tom Lavedas
> -----------
> http://www.pressroom.com/~tglbatch/



Fri, 02 May 2003 03:00:00 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. AllocUnit() function doesn't work properly with NTFS

2. CreateProcess function doesn't work properly.

3. Replace function doesn't work properly

4. CreateProcess function doesn't work properly.

5. JavaScript doesn't work properly in IE

6. WshNetwork doesn'tk work properly

7. STMAdmin.dll to query NT Log doesn't seem to work properly

8. Back button doesn't work properly

9. Can someone tell me why this eval() doesn't work in IE

10. Can't get Split function to work properly

11. Documenter doesn't work properly in A2K

12. Select method doesn't work properly

 

 
Powered by phpBB® Forum Software