Jump to content
Sign in to follow this  

Optional ByRef

Recommended Posts

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 = ""

Start -> Programs -> AutoIt v3 -> AutoIt Help File -> Index -> (The Function you are asking about)----- Links -----DllStruct UDFsRSA Crypto UDFs

Share this post

Link to post
Share on other sites

No.. I just figured that out the hard way also. You can't use a variable for a default value.

601DisengageEnd Program

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...