Roland S. Posted February 22, 2008 Share Posted February 22, 2008 Hello Forum, i have some stupid question: When is the best case to use the keyword ByRef for variables? Becaus i am not shure every time, i have to ask this question to all the people here. regards Roland Link to comment Share on other sites More sharing options...
Zedna Posted February 22, 2008 Share Posted February 22, 2008 it's used in function parametres 1) when you need change value of parameter inside func and return this changed value back through th at parameter variable2 2) when you pass array as function parameter - in this case there isn't done copy of all array to local variable --> this is for speed optimalization Resources UDF ResourcesEx UDF AutoIt Forum Search 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