Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

ISARRAY doesn't work as I expect inside a function

$
0
0
local $foobar[2] = ["one","two"]
test($foobar)
func test(byref $array)
	 msgbox(0,"","isarray: " & isarray("array"))
endfunc


I want to create a function that accepts as parameter both an array or a simple variable so inside this function I must test if it's an array or not.
In my example I expect to see the message "isarray: 1".   Why do I get "isarray: 0" instead?

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>