Sign in to follow this  
Followers 0
stratosgr

Function that returns array problem..

3 posts in this topic

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..

Share this post


Link to post
Share on other sites



You use $outsideofFunctionArray[$index], where $index is the index of the array element you want to access.

Share this post


Link to post
Share on other sites

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.. :D

Again, thanx a lot guys!!

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  
Followers 0