Been fumbling around with arrays and this error has popped up. However, the array behaves rather strangely as I will describe later.
Currently working on an automated installer, so users basically pick from a list of programs via checklist and select what they want to install.
The array is defined as follows
local $App[25]
$App[0] = ""
$App[1] = GUICtrlCreateCheckbox($AppName[1], 20, 40, 270, 25)
$App[2] = GUICtrlCreateCheckbox($AppName[2], 20, 65, 270, 25)
GUICtrlSetState($App[02], $GUI_DISABLE)
....
$App[24] = GUICtrlCreateCheckbox($AppName[2], 20, 65, 270, 25)
GUICtrlSetState($App[24], $GUI_DISABLE)
And it goes on to fill the array.
The error I've been getting occurs in this line of code:
$CurrentInstall = $CurrentInstall + 1
if GUICtrlRead($App[$CurrentInstall]) == $GUI_CHECKED Then
;Do something
endif
However, this error seems to be behaving rather strangely. The error only occurs whenever the checkboxes are unchecked. When the checkboxes are checked, they go on to do whatever they are suppose to do and install the respective highlighted programs.
Thanks for any help I can get on the matter.