Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15572

How do I run VB6 code as string in VB6?

$
0
0
Let's say I had code a string variable like this.
Code:

Dim MyString as String
MyString="msgbox ""test"""

Is there a way to do something like this?
Code:

RunStringAsVBCode MyString
Obviously the name of the function isn't RunStringAsVBCode, or I would have already tried it and found it worked, and not be asking here. I would like to know if such a function actually exists at all, under any name. I think I remember something like this before, but I think I had to add an ActiveX DLL in the Project>References menu, in order to get access to this function.

Any help here would be great. Thanks in advance.

Viewing all articles
Browse latest Browse all 15572

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>