|
-
October 10th, 1999, 12:35 AM
#1
Can a variable store an expression?
How do I store an expression in a variable in such a way that VB will regard the variable as an expression rather than a string? I want the user to be able to input an expression which the application then solves. At the moment, I'm ending up with data mismatch errors because the expression is regarded as a string rather than an expression.
-
October 11th, 1999, 01:44 AM
#2
Re: Can a variable store an expression?
VB does not have an Eval function as many interpreters do. An Eval function would allow you to pass a string (which contains an expression) and evaluate that string.
You can that functionality by integrating the "Microsoft Script Control" in your VB app. It's an OCX that does have an Eval function!
-
January 24th, 2002, 06:10 AM
#3
A bit of Knowledge from Past
:-)
Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, TCartwright, Bruno Paris, Dr_Michael
and all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
The Rater
...at present time, using mainly Net 4.0, Vs 2010
Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|