Execute a variable
I want to execute a variable.
I have a variable that has (var1 = If %%a <> ''). Then I replace %%a by Itemcode (var1 = If Itemcode <> ''). Itemcode is declared.
In run-time I want to execute var1 and return True or False.
Is it possible? how to do it?
If you need to assign the result of comparation of 2 variables try this:
Dim b As Boolean = False Dim s1 As String = "1" Dim s2 As String = "3" b = (s1 = s2) Console.WriteLine("b=" & b)