
Is there an Eval function in VB?
Try adding the
VBScript control to your program. You can execute a single
statement or a complex script program. It's not installed with VB6, but
hidden in one of the tools or unsupported directories on the installation
CDs.
..........Wayne
Check www.JustPC.com for my books on VB, SQL and other topics.
Quote:
> There is an "Eval" function in the Visual Basic which is embedded in MS
> Access, but this function doesn't exist in pure Microsoft Visual Basic.
It's
> a very useful function, that can take any input and evaluate it. For
> example, in
> result=Eval(3+2)
> result has the value 5, but Eval can also evaluate other FUNCTIONS!
> result=Eval("finddate()")
> result has the value returned by finddate()
> Does anyone know a function in pure VB that can do that?
> (I can't use
> result=finddate()
> because "finddate()" is a string found through a query in a field of a
table
> (this field keeps names of functions)
> Any ideas are welcome...
> Thanks,
> Elina