cancel
Showing results for 
Search instead for 
Did you mean: 

Execute a variable

Former Member
0 Kudos

Hi all,

I want to execute a variable.

For example:

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?

Best regards,

Augusto Silva

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

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)

Regards

Sierdna S.

Answers (0)