AutoIt
#cs ---------------------------------------------------------------------------- AutoIt Version: 3.3.12.0 Author: myName Script Function: Template AutoIt script. #ce ---------------------------------------------------------------------------- ; ?? seems like the array is not destroyed when subroutine is exited ; Script Start - Add your code below here #include <Array.au3> Global $sWhereAreWe = _GetDirParent(@ScriptDir) ;; "R:\Operations\MacroTools\_RejectServiceRequestsNotInError\Programs\ Global $sWhereAreWeA = _GetDirParent($sWhereAreWe) ;;"R:\Operations\MacroTools\_RejectServiceRequestsNotInError\ Local $iI $sParent = $sParent & $array[$iI] & "\" Return $sParent ; Local $sS = _GetDirParent()
arrayNotDestroyedBetweenCalls.au3.docx 83.42KB
1 downloads
the above code attempts to find the Parent folder of the folder provided.
It fails because the Array called array retains its upperbound between calls.
I would have thought arrays would be destroyed after the function closes and recreated with new bounds.
Is this an expected effect?
Is there anyway to force the array to be deleted and created with new bounds.
thanks
Phil