S
SiewSa
I have come to a situation that I need to use the result of a string
variable as a formula for performing calculation.
As an example below:
Dim X As Integer
Dim Y As Integer
Dim Result As Integer
Dim Formula As String = "X + Y"
X = 3
Y = 5
Result = Formula
MessageBox.Show(Result)
I know that the above example is not working but I am appreciate if someone
out there can help me on that.
I think I have gone through some similar questions inside the newsgroup but
I am not too sure on the solutions. Many thanks to someone out there who is
answering the above question again and if possible, give me an example.
Thank you.
variable as a formula for performing calculation.
As an example below:
Dim X As Integer
Dim Y As Integer
Dim Result As Integer
Dim Formula As String = "X + Y"
X = 3
Y = 5
Result = Formula
MessageBox.Show(Result)
I know that the above example is not working but I am appreciate if someone
out there can help me on that.
I think I have gone through some similar questions inside the newsgroup but
I am not too sure on the solutions. Many thanks to someone out there who is
answering the above question again and if possible, give me an example.
Thank you.