I have a tiny problem right now Experts worrying this error "Subscript provided on non-accessible variable". Every I want to understand is how deserve to I skip this error kind in mine For... Loop... Next... Code and should proceed looping until end.

You are watching: Autoit subscript used on non-accessible variable

 

My code:

For $j = 1 to $aLevel2_SubFolders<0> _DirRemove($aLevel2_SubFolders<$j>, 1) GUICtrlSetData($Progress1, $j)NextIf I"m not mistaken, the loop stop"s since the change is amounts to to 0 already, and no longer proceeding the loop. Ns tried including "If
error then ContinueLoop" however I think it"s not the right one since still stop"s the loop.

From the path declared, I have 23 or much more subfolders to eliminate from a parent folder and also some to be excluded in remove (was asserted in different line of mine code). The difficulty is, once my first parent folder already has no subfolder/s to eliminate then my because that loop protect against running and flagged this error. Have the right to I perform something on that? i mean, I require to proceed my deletion that subfolders also if the very first parent folder is already empty or was already deleted.

Please permit me know if you need an ext explanation, many thanks in advancement Experts.

See more: Finding A Dead Rat In Pool Safe To Swim, What To Do If You Find A Dead Animal In The Pool

 

KS15

Edited November 19, 2019 through KickStarter15

Programming is "To make it so an easy that there are obviously no deficiencies" or "To do it so complex that there room no obvious deficiencies" by C.A.R. Hoare.


Link come postShare on various other sites
*

"In the start the world was created. This has made a the majority of people very angry and also been widely concerned as a poor move."


Link to postShare on other sites

KickStarter15 26


Posted November 18, 2019

KickStarter15

UniversalistActive Members563 posts
Author
Posted November 18, 2019
Nine, Thanks, it"s working