We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#include <Array.au3> #include './N.au3' Local $o = NGlobal() Local $a = [1, 2] $o.arr = $a NMain(main) Func main() ;Change an element ;~ $o.arr[0] = 3 ; <-- errorstdout: Statement cannot be just an expression. Local $t = $o.arr $t[0] = 3 $o.arr = $t ConsoleWrite($o.arr[0] & @CRLF) ;Display array ;~ _ArrayDisplay($o.arr) ; <-- errorstdout: Expected a variable in user function call. _ArrayDisplay($t) EndFunc
Temporary workarounds that I've tried:
_ArrayDisplay
The text was updated successfully, but these errors were encountered:
This library does not support array datatype.
ConsoleWrite($o.arr[0] & @\CRLF)
This line works because AutoIt supports array's get-index on an expression chain.
( ( $o ).invoke( 'arr' ) -> @value ).index( 0 ) -> @return
In AutoItObject, they handled array datatype in object invoking with SAFEARRAY.
$object.arr[0] ; get $object.arr[0] = any ; set IDispatch::Invoke(id, args, &ret) // known member "arr" as SAFEARRAY // uses SafeArrayAccessData
Sorry, something went wrong.
@nomi-san, do you have any intention to implement array support? or is that not possible?
@BiatuAutMiahn that's possible, I will add support in next month.
No branches or pull requests
Temporary workarounds that I've tried:
_ArrayDisplay
by assigning the array (from the global state) to a new local variable.The text was updated successfully, but these errors were encountered: