Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
7
Task/Arrays/AutoHotkey/arrays-1.ahk
Normal file
7
Task/Arrays/AutoHotkey/arrays-1.ahk
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
myArray := Object() ; could use JSON-syntax sugar like {key: value}
|
||||
myArray[1] := "foo"
|
||||
myArray[2] := "bar"
|
||||
MsgBox % myArray[2]
|
||||
|
||||
; Push a value onto the array
|
||||
myArray.Insert("baz")
|
||||
11
Task/Arrays/AutoHotkey/arrays-2.ahk
Normal file
11
Task/Arrays/AutoHotkey/arrays-2.ahk
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
arrayX0 = 4 ; length
|
||||
arrayX1 = first
|
||||
arrayX2 = second
|
||||
arrayX3 = foo
|
||||
arrayX4 = bar
|
||||
Loop, %arrayX0%
|
||||
Msgbox % arrayX%A_Index%
|
||||
source = apple bear cat dog egg fish
|
||||
StringSplit arrayX, source, %A_Space%
|
||||
Loop, %arrayX0%
|
||||
Msgbox % arrayX%A_Index%
|
||||
Loading…
Add table
Add a link
Reference in a new issue