dim a, b, res as integer
dim c as string
a=10
b=5
c= "a+b"
res= '" & c & "'
how do i get the result value 15 ?

You want to try it this way:

dim a, b, res as integer
dim c as string
a=10
b=5
res= a+b
c= res.tostring
 Debug.Print(c)
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.