How to reset an array
How to reset an array
arr := ComObjArray(VT_VARIANT:=12, 7),I want to reset the array to the default null.
- Micromegas
- Posts: 260
- Joined: 28 Apr 2015, 23:02
- Location: Germany
Re: How to reset an array
Have you looked at ComObjArray()? The first example there has a loop accessing all elements, which you can use as a model, giving the following:
But I'm not sure whether null is the default; where did you get that information?
Code: Select all
Loop % arr.MaxIndex() + 1
arr[A_Index-1] := VT_NULL
- Delta Pythagorean
- Posts: 627
- Joined: 13 Feb 2017, 13:44
- Location: Somewhere in the US
- Contact:
Re: How to reset an array
Arr := "" Done
[AHK]......: v2.0.12 | 64-bit
[OS].......: Windows 11 | 23H2 (OS Build: 22621.3296)
[GITHUB]...: github.com/DelPyth
[PAYPAL]...: paypal.me/DelPyth
[DISCORD]..: tophatcat