Can anybody describe me the difference of eval and execute functions?

Re: EVAL & EXECUTE by McKirahan

McKirahan
Fri Jul 16 05:48:28 CDT 2004

"Thara DK" <Tharadk@hotmail.com> wrote in message
news:OF2sbevaEHA.2944@TK2MSFTNGP11.phx.gbl...
> Can anybody describe me the difference of eval and execute functions?


Eval Function = Evaluates an expression and returns the result.

Execute Method = Executes a regular expression search against a specified
string.

WSH 5.6 documentation download
http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-
8A76-1C4099D7BBB9&displaylang=en




Re: EVAL & EXECUTE by Viatcheslav

Viatcheslav
Fri Jul 16 05:50:29 CDT 2004

From VBScript help:

In VBScript, x = y can be interpreted two ways. The first is as an
assignment statement, where the value of y is assigned to x. The second
interpretation is as an expression that tests if x and y have the same
value. If they do, the result is True; if they are not, the result is False.
The Eval method always uses the second interpretation, whereas the Execute
statement always uses the first.

//------------------------------------
Regards,
Vassiliev V. V.
http://www-sharp.com -
Scripting/HTA/.Net Framework IDE

"Thara DK" <Tharadk@hotmail.com> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ:
news:OF2sbevaEHA.2944@TK2MSFTNGP11.phx.gbl...
> Can anybody describe me the difference of eval and execute functions?
>
>



Re: EVAL & EXECUTE by Thara

Thara
Fri Jul 16 06:52:52 CDT 2004

Clear and Understood....
Thanks VVV and Mckirahan....



"Viatcheslav V. Vassiliev" <msnewsgroup@www-sharp.com> wrote in message
news:ugSm2KyaEHA.1764@TK2MSFTNGP10.phx.gbl...
> From VBScript help:
>
> In VBScript, x = y can be interpreted two ways. The first is as an
> assignment statement, where the value of y is assigned to x. The second
> interpretation is as an expression that tests if x and y have the same
> value. If they do, the result is True; if they are not, the result is
False.
> The Eval method always uses the second interpretation, whereas the Execute
> statement always uses the first.
>
> //------------------------------------
> Regards,
> Vassiliev V. V.
> http://www-sharp.com -
> Scripting/HTA/.Net Framework IDE
>
> "Thara DK" <Tharadk@hotmail.com> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ:
> news:OF2sbevaEHA.2944@TK2MSFTNGP11.phx.gbl...
> > Can anybody describe me the difference of eval and execute functions?
> >
> >
>
>