Wrox Programmer Forums
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 21st, 2003, 04:15 AM
Registered User
 
Join Date: Dec 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How do i evaluate

Hi there,

i am in problem with the vb6.0. how do i evaluate the expression in vb6.0. e.g. is mentioned below.

Dim a, b, result as double
Dim c as string

a=10
b=5
c="a+b"
result=Some_function(c)
'here some function is required to evaluate the given expression.


Thanks & Regards


[email protected] is my mail id.


 
Old December 22nd, 2003, 01:47 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can use the Eval method of the ScriptControl component.
Look at Q184740: "HOWTO: Call Functions Using the Script Control", there is all the info you need to install and use the ScriptControl

Marco





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to evaluate parameter? chobo XSLT 8 February 25th, 2008 07:05 AM
Evaluate string in the where clause mat41 SQL Language 5 February 1st, 2008 02:07 AM
Evaluate responseText from Server.aspx peace2007 Ajax 8 January 4th, 2008 06:47 AM
XPath Evaluate Document safin XML 2 September 19th, 2005 07:29 AM
evaluate the size of a file BEFORE it gets uploade ALEX_GRIM ASP.NET 1.0 and 1.1 Professional 7 May 10th, 2005 10:30 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.