最後更新2011/11/15 13:31:00

ContinueCase

¦b Select ©Î Switch °Ï¬q¸Ì¡A°±¤î¥Ø«eªº case Ä~Äò°õ¦æ¤U¤@­Ó Case.

ContinueCase

 

»¡©ú

¦b Select ©Î Switch °Ï¬q¸Ì¡A¤@­Ó case ªº³B²z¡A¥¿±`±¡ªp·|µ²§ô©ó¤U¤@­Ó Case ±Ô­z¥X²{®É¡C°õ¦æ ContinueCase ·|§i¶D AutoIt °±¤î¥Ø«eªº case ¨Ã¶}©l°õ¦æ¤U¤@­Ó Cas.

 

¬ÛÃö

Select...EndSelect, Switch...EndSwitch

 

½d¨Ò


$msg = ""
$szName = InputBox(Default, "Please enter a word.", "", " M", Default, Default, Default, Default, 10)
Switch @error
Case 2
    $msg = "Timeout "
    ContinueCase
Case 1; ±µÄò¤W¤@­Ó case
    $msg &= "Cancellation"
Case 0
    Switch $szName
    Case "a", "e", "i", "o", "u"
        $msg = "Vowel"
    Case "QP"
        $msg = "Mathematics"
    Case "Q" to "QZ"
        $msg = "Science"
    Case Else
        $msg = "Others"
    EndSwitch
Case Else
    $msg = "Something went horribly wrong."
EndSwitch

MsgBox(0, Default, $msg)


¦^¤W­¶
¦^¥D­¶