I need to run a string as a code?
My string has the following value:
Dim a as String="frm1.visibility=False"
on Click of a button I need to execute the code in the string?
Any solutions?
Printable View
I need to run a string as a code?
My string has the following value:
Dim a as String="frm1.visibility=False"
on Click of a button I need to execute the code in the string?
Any solutions?
I can't think of anyway possible to do that because it's just a string, it's not a command, it wont run.
Sorry, maybe someone else might be able to come up with something.
What is it you are trying to do exactely? or should i say why?
Why dont you put the string in a function?
eg
VB Code:
sub ShowForm(dim frm1 as System.Windows.Form) frm1.Visibility = false end sub ..... ShowForm(frm1)