JRowe Posted September 27, 2009 Share Posted September 27, 2009 I have a global array set in an include. I want to pass that array to some functions without having to specify _SomeFunc($myArray, param1, param2). I want to pass that array ByRef. Is there anything wrong with this? Global $myArray[1] Func SomeFunc($param1, $param2, Byref $inFuncArray = $myArray) ;Do stuff with params and arrays EndFunc [center]However, like ninjas, cyber warriors operate in silence.AutoIt Chat Engine (+Chatbot) , Link Grammar for AutoIt , Simple Speech RecognitionArtificial Neural Networks UDF , Bayesian Networks UDF , Pattern Matching UDFTransparent PNG GUI Elements , Au3Irrlicht 2Advanced Mouse Events MonitorGrammar Database GeneratorTransitions & Tweening UDFPoker Hand Evaluator[/center] Link to comment Share on other sites More sharing options...
JRowe Posted September 27, 2009 Author Share Posted September 27, 2009 Scratch that, that was a dumb question. Global arrays can be accessed anywhere, thus the point of the Global keyword. /Facepalm@self [center]However, like ninjas, cyber warriors operate in silence.AutoIt Chat Engine (+Chatbot) , Link Grammar for AutoIt , Simple Speech RecognitionArtificial Neural Networks UDF , Bayesian Networks UDF , Pattern Matching UDFTransparent PNG GUI Elements , Au3Irrlicht 2Advanced Mouse Events MonitorGrammar Database GeneratorTransitions & Tweening UDFPoker Hand Evaluator[/center] 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