NeverGiveUp Posted November 10, 2010 Share Posted November 10, 2010 (edited) $Variable = Example (MsgBox,16,$Var1,$Var2) Data extracted from resource is stored in $Variable Main Script Example: Func Test($Var1,$Var2) $Variable EndFunc This does not work... The variable is a string so how can make the string the actual code instead? Edited November 10, 2010 by NeverGiveUp Link to comment Share on other sites More sharing options...
SublimePorte Posted November 10, 2010 Share Posted November 10, 2010 I don't think it's very clear what you want to do.. The code you've posted doesn't make sense, and certainly isn't runnable. Like to try and clarify a bit more? Link to comment Share on other sites More sharing options...
Malkey Posted November 10, 2010 Share Posted November 10, 2010 Maybe something like this. Global $Variable = "MsgBox(16,$Var1,$Var2)" Local $sStr1 = "Test Example", $sStr2 = "Press OK to finish test." Test($sStr1, $sStr2) Func Test($Var1, $Var2) Execute($Variable) EndFunc ;==>Test Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now