Eval in VBA Example

There is no equivalent for this in VB, but I don\'t care today!

This was pulled from deja.com

> > > Dim sExpr as string
> > > Dim iAnswer as Integer
> > >
> > > sExpr = \"2+2\"
> > > iAnswer = Cint(Eval(sExpr))
> > >
> > > iAnswer becomes 4.
Related Scribbles:
  • Visual Basic Notes


  • ID: 95
    Author:
    leonard
    Date Updated:
    2003-12-23 00:22:55
    Date Created:
    2003-07-31 14:01:32

    Edit

    Comments?
     >> Leonard Chan's Homepage  >> Scribble Web  >> Eval in VBA Example
    leonard.lotus-land.ca is hosted by Perceptus Solutions Inc.