Could somebody help me with the Eval function?
I have a string that I store in a variable. I would like this string to be evaluated to true or false, but I always get an error message so now I am totally lost how Eval function might work.
TestValue="ReportRequest"
When I write: ? Eval(TestValue="ReportRequest") I get it evaluated to -1. So far so good.
But if I have the string stored in a variable like StringToEval="TestValue='ReportRequest'"
? Eval (StringToEval) gives me the following error message:
Can't find the name 'TestValue' you entered into the expression.
Could somebody tell me how to evaluate this variable (like StringtoEval) that contains a string with a variable?
Many thanks.
SWK
I have a string that I store in a variable. I would like this string to be evaluated to true or false, but I always get an error message so now I am totally lost how Eval function might work.
TestValue="ReportRequest"
When I write: ? Eval(TestValue="ReportRequest") I get it evaluated to -1. So far so good.
But if I have the string stored in a variable like StringToEval="TestValue='ReportRequest'"
? Eval (StringToEval) gives me the following error message:
Can't find the name 'TestValue' you entered into the expression.
Could somebody tell me how to evaluate this variable (like StringtoEval) that contains a string with a variable?
Many thanks.
SWK