|
-
Sep 21st, 2000, 11:39 AM
#1
Thread Starter
Junior Member
Folks,
Does anybody know how I can dynamically evaluate a maths expression that is held in a string.
i.e.
text1="10/3"
ans = eval(text1)
'ans is now 3.3333
The eval function works in ASP 3.0 but doesn't work with vb6 is there an equivalent function I can use in vb?
note: I' dont have ASP 3.0 so I can't include a reference.
Cheers
John
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
|