Ejoc Posted April 20, 2005 Share Posted April 20, 2005 So I did some searching but it didn't answer my question, so: Can I have an optional ByRef I would like to make this work... This is just an example the real code is different. Global $a="a",$b="b" Test($b); $b = "" Test() ; $a = "" Func Test(ByRef $var = $a) $var = "" EndFunc Start -> Programs -> AutoIt v3 -> AutoIt Help File -> Index -> (The Function you are asking about)----- Links -----DllStruct UDFsRSA Crypto UDFs Link to comment Share on other sites More sharing options...
Smed Posted April 20, 2005 Share Posted April 20, 2005 No.. I just figured that out the hard way also. You can't use a variable for a default value. 601DisengageEnd Program 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