stratosgr Posted September 16, 2009 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..
omikron48 Posted September 16, 2009 Posted September 16, 2009 You use $outsideofFunctionArray[$index], where $index is the index of the array element you want to access.
stratosgr Posted September 16, 2009 Author 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!!
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