marselo Posted August 11, 2010 Share Posted August 11, 2010 i have a function, that needs to return an array. how can i do that? Link to comment Share on other sites More sharing options...
UEZ Posted August 11, 2010 Share Posted August 11, 2010 Here a very simple example: #include <Array.au3> $array = Create_Array() _ArrayDisplay($array) Exit Func Create_Array() Local $aCreate[10] Local $x For $x = 0 To UBound($aCreate) - 1 $aCreate[$x] = Random(0, 100, 1) Next Return $aCreate EndFunc Br, UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
marselo Posted August 11, 2010 Author Share Posted August 11, 2010 i dont really know the max index of the array, so how can i return an array with the exact index? Link to comment Share on other sites More sharing options...
UEZ Posted August 11, 2010 Share Posted August 11, 2010 i dont really know the max index of the array, so how can i return an array with the exact index?Look in help file for UBound().Br,UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ 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