Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Select...Case...EndSelect & ContinueCase

$
0
0

Just browsing through the helpfile trying to solve a problem and i wasnt sure about this

 

For eg

I have a number of different files to check for in a folder but they have different executions depending on whats available, and there maybe more than one type available.

So i need it to keep going until they are all done

 

eg of one below

        $aRarFile = _RecFileListToArray(@ScriptDir, "*.7z", 1, 0) ;~         _ArrayDisplay($aRarFile, ".Rar Files")         If IsArray($aRarFile) Then             $test = RunWait(@ComSpec & ' /c ' & @TempDir & '\7z.exe' & ' x -y ' & '"' & $FileEnd & '"', "", @SW_HIDE)             Sleep(200)         EndIf

So i was debating using

Select         Case $aRarFile = _RecFileListToArray(@ScriptDir, "*.7z", 1, 0) ;~         _ArrayDisplay($aRarFile, ".Rar Files")             If IsArray($aRarFile) Then                 $test = RunWait(@ComSpec & ' /c ' & @TempDir & '\7z.exe' & ' x -y ' & '"' & $FileEnd & '"', "", @SW_HIDE)             EndIf         ContinueCase         Case $aRarFile = _RecFileListToArray(@ScriptDir, "*.rar", 1, 0) ; etc etc Endselect

But the bit im not sure about is

Does ContinueCase override Select's natural only first one is executed setting?


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>