Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to execute the contents of a string 1

Status
Not open for further replies.

bangalibhai

Programmer
Oct 22, 2002
26
US
Hi,

I would greatly appreciate if someone could help me out with the following.

Testvar="Barray[0]=var1 OR Barray[1]=var1 OR Barray[2]=var1"

I would like to use the content of testvar in an if statement

if (TestVar) Then
...
...
Endif

But the above systax does not work. How do I reference the value of the string and execute what's in it?

Thanks,
Nihad


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top