> There is no VB equivalent of the Eval function. Such functions are usually
> unique to interpreted languages, and because VB is not an interpreted
> language, the code cannot be interpreted at runtime. However, it is
possible
> to use the same Eval function that is used by IE by adding a "Microsoft
> Script Control" to your form. The script control has an Eval method that
you
> can use. This control can be found in the Project | Components dialog box.
> Jason Bouzane
> > Hi
> > I'm converting an appliction written in VBA (Access 2.0) to
> > VB 6. In this app the Eval() function is used to calculate
> > a formula stored as a string in the database.
> > Something like;
> > Dim sExpr as string
> > Dim iAnswer as Integer
> > sExpr = "2+2"
> > iAnswer = Cint(Eval(sExpr))
> > iAnswer becomes 4.
> > Does anybody know the VB6 equivalent of this function.
> > I can't seem to find the answer in MSDN or KB.
> > TIA Leon