Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Execute a variable

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

Former Member
Former Member replied

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.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question