01-07-2012, 12:31 AM
Here is just a little tip for you guys, if you ever want to store a snippet of code within a variable, you can use the following syntax.
So for example,
This will actually store the code to display a messagebox with the text of 'Hello' within the c variable. This is very useful if you would like to develop some sort of plugin system for your application.
I am not too familiar on how executing that variable actually works, but here is a code snippet that shows the execution of code stored within a variable.
<!-- m --><a class="postlink" href="http://pastebin.com/CKfD7nRz">http://pastebin.com/CKfD7nRz</a><!-- m -->
Code:
<code>
</code>
So for example,
Code:
Dim c = <code>
Messagebox.Show("Hello!")
</code>
This will actually store the code to display a messagebox with the text of 'Hello' within the c variable. This is very useful if you would like to develop some sort of plugin system for your application.
I am not too familiar on how executing that variable actually works, but here is a code snippet that shows the execution of code stored within a variable.
<!-- m --><a class="postlink" href="http://pastebin.com/CKfD7nRz">http://pastebin.com/CKfD7nRz</a><!-- m -->