
Looking for a VB function like Eval() in ASP or Interpret in REXX
I believe you have to use the eval function in jscript.net, as vb.net dont
have one, Easiest way is to create a simple wrapper DLL to the eval method
in a single jscript class and use that from vb.
--
Regards
John Timney (Microsoft ASP.NET MVP)
----------------------------------------------
<shameless_author_plug>
Professional Windows Forms
ISBN: 1861005547
Professional JSP
ISBN: 1861003625
Beginning JSP Web Development
ISBN: 1861002092
</shameless_author_plug>
----------------------------------------------
Quote:
> Hi.
> I am looking for a VB function which allows you to assign a value to a
> existing variable by executing a string expression.
> Example: I have a field called nLength, nWidth in table called
tblDefaults.
> (nLength=5, nWidth=3)
> In VB:
> Dim nAdd as Integer
> Dim nMultiple as Integer
> oRecSet = "Select nLength, nWidth from tblDefaults"
> If not oRecSet.eof then
> nAdd = VBFunction( nLength & " + " & nWidth) (
nAdd=8 )
> nMultiple = VBFunction( nLength & " * " & nWidth) (
> nAdd=15 )
> End if
> Thanks, Russell