stratosgr Posted September 16, 2009 Share Posted September 16, 2009 Hi ppl, im new on autoit and programming and I have some silly questions for you. Well i created a function that collects and returns an array with all links that found inside a website.. How can I use this array outside the function.. what am I missing.. ? This script is an example, not the actual script.. #Include <Array.au3> #Include <FF.au3> $outsideofFunctionArray = _collectlinks() ;Heres my problem.. Func _collectlinks() if _FFIsConnected() Then $array = _FFLinksGetALL() return $array endfunc Any help is much appreciated Excuse my language since english is not my native language.. Link to comment Share on other sites More sharing options...
omikron48 Posted September 16, 2009 Share Posted September 16, 2009 You use $outsideofFunctionArray[$index], where $index is the index of the array element you want to access. Link to comment Share on other sites More sharing options...
stratosgr Posted September 16, 2009 Author Share Posted September 16, 2009 omg! Thnq for your quick replies. I really appreciate it !!!! Problem solved.. Another mistake i was doing is that i declared the array inside the function as local.. Again, thanx a lot guys!! 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