際際滷

際際滷Share a Scribd company logo
惡惺惷 悋悋惺惆 悋愕悋愕悸  愃悸
悋悴悋 惡愕
Go To悋悴悸 悋愆惘愀悸 ,

Select Case
惴忰惴悸 悋悸 悴惆悋
 惆惘悋愕悸 悋惺惆 愃悸 悋惡惘悴悸 悴惡 悋惠惠惡悋
悒 悋惠 :-
1- 惴悸 悋悋惺惆悸 .
2- 惶愃悸 悋悋惺惆悸 .
3- 忰惴 悖惘 悋悋惺惆悸 惡悋愃悸 悋悴悴慍悸 .
悋惠惠悋
-: 悋惴悸

GoTo

... 惠 悋惠悋  悴慍悄 悒 悴慍悄 悛悽惘  悋惡惘悋悴 悖惓悋悄 惠悵

..  悋 惺悋  悋惠悋
1
.... 悋惠悋 愃惘 悋愆惘愀:-

悋惠悋 愕愀惘 忰惆惆 惆 悋惠惆 惡悖 愆惘愀-1
GOTO line

惓悋
Dim n as string , g as integer
)悖惆悽 悋愕 (n= inputbox
GOTO A
Text1.text = n
:A
) & n愆惘悋 愕惠悽惆悋 悋惡惘悋悴  (msgbox
悋惠惠悋
-: 悋惴悸

GoTo

... 惠 悋惠悋  悴慍悄 悒 悴慍悄 悛悽惘  悋惡惘悋悴 悖惓悋悄 惠悵

..  悋 惺悋  悋惠悋
2
.... 悋惠悋 悋愆惘愀:-

悋惠悋 愕愀惘 忰惆惆 惺惆悋 惠忰 愆惘愀 惺-1
IF condition THEN GOTO line

惓悋
IF g >= 90 THEN GOTO A
IF g<90 THEN GOTO B
:A
惠悋慍  = Text1.text
:B
悴惆 悴惆悋 = Text1.text
Case
-: 悋惴悸

... 惠愕惠悽惆 惠悵 惺悋惠 惺悸 忰愕惡 愆惘愀 忰惆惆

: 忰惓 悖
1 -.SELECT CASE悸惆惺悋悋 悸愃惶 悸悋惆惡惆悋悸 惶愃悸 悋悋惺惆悸 :
2 -.expression悋惠惺惡惘 悋悵 惘惆 惠 :
3 - CASE惠惷惺 惡  悋忰惠悋  悋忰惠悋惠 :
悋惠惺惡惘 悋悵 惘惆 惠 .
4 -2,,prob1, prob悋忰惠悋惠 悋惠 惘惆 :
惠悋 惠惺惡惘 .
5 -CASE ELSE惺惆悋  惠忰 悖 悋忰惠悋 :
 悋悽惠悋惘悸 .
6 - .END SELECT悋悸 悋悋惺惆悸 :

SELECT CASE expression
1CASE prob

1Statments
..
2CASE prob
.
2Statments

CASE ELSE
..
3Statment
.
END SELECT
select case 惠悋惡惺
SELECT CASE grade
CASE 100 to 90
Text1.text=  惠悋慍
CASE 89 to 80
Text1.text =  悴惆 悴惆悋
CASE 79 to 70
Text1.text =  悴惆
CASE 69 to 60
Text1.text =   惡
CASE Else
Text1.text =   惘悋愕惡
END SELECT

惓悋
悋悋悴惡
Dim x as string, y as integer
)  悋惘 悽惆悖惆悽 惘悋 1 悒3  ( Y = inputbox
) 悋惘 悽惆悖惆悽 悋愕 悋悴惺悸 ( X = inputbox
Select Case y
1 Case
)  & x悋悋 悋悋悴惡  愕31 (msgbox
2 Case
 悸惆惺悋 悸愃惶愃悸 悋惺惆悸 悋 / 悋悋悴惡 愕31  愕 Select case悋悋 (msgbox
)& x
3 Case
)   & x悋悋悴惡  愕7  愕31悋悋 (msgbox
Case Else
)  & x悋惘 悋惆悽 悽悋愀悧 悋悋 (msgbox
END SELECT
悋惠愀惡
  惠悋惡 悋惺 惠惆惘悋惡 )3-5 ( 悋惠愀惡
悋惘悋惡惺 :-
 惡惠悋惡悸 惡惘悋悴 惡悋愕惠悽惆悋 悋悴悋 惡愕
悋 惡悒惆悽悋 惆惘悴悋惠 愀悋惡  悋惆悸 悋忰悋愕惡
 悵 悋惆惘悴悋惠  : ) 悋惘 悽惆悖惺悋 悋愕悸 惶
 悋悽惠惡悋惘 悋惶 悋  悋惓悋 (忰惓 悋
悋惡惘悋悴 惡忰愕悋惡 悴惺 悵 悋惆惘悴悋惠 
愀惡悋惺悸 悋惠惆悋惘  悋 悋惠惆悋惘 悋惠悋 :-

悋惆惘悴悸
悖惓惘 09

悋惠惆悋惘
惠悋慍

98 - 08 悴惆 悴惆悋
97  07 悴惆
05 - 96 惡
0 - 94 惘悋愕惡

More Related Content

Goto & select

  • 1. 惡惺惷 悋悋惺惆 悋愕悋愕悸 愃悸 悋悴悋 惡愕 Go To悋悴悸 悋愆惘愀悸 , Select Case
  • 2. 惴忰惴悸 悋悸 悴惆悋 惆惘悋愕悸 悋惺惆 愃悸 悋惡惘悴悸 悴惡 悋惠惠惡悋 悒 悋惠 :- 1- 惴悸 悋悋惺惆悸 . 2- 惶愃悸 悋悋惺惆悸 . 3- 忰惴 悖惘 悋悋惺惆悸 惡悋愃悸 悋悴悴慍悸 .
  • 3. 悋惠惠悋 -: 悋惴悸 GoTo ... 惠 悋惠悋 悴慍悄 悒 悴慍悄 悛悽惘 悋惡惘悋悴 悖惓悋悄 惠悵 .. 悋 惺悋 悋惠悋 1 .... 悋惠悋 愃惘 悋愆惘愀:- 悋惠悋 愕愀惘 忰惆惆 惆 悋惠惆 惡悖 愆惘愀-1 GOTO line 惓悋 Dim n as string , g as integer )悖惆悽 悋愕 (n= inputbox GOTO A Text1.text = n :A ) & n愆惘悋 愕惠悽惆悋 悋惡惘悋悴 (msgbox
  • 4. 悋惠惠悋 -: 悋惴悸 GoTo ... 惠 悋惠悋 悴慍悄 悒 悴慍悄 悛悽惘 悋惡惘悋悴 悖惓悋悄 惠悵 .. 悋 惺悋 悋惠悋 2 .... 悋惠悋 悋愆惘愀:- 悋惠悋 愕愀惘 忰惆惆 惺惆悋 惠忰 愆惘愀 惺-1 IF condition THEN GOTO line 惓悋 IF g >= 90 THEN GOTO A IF g<90 THEN GOTO B :A 惠悋慍 = Text1.text :B 悴惆 悴惆悋 = Text1.text
  • 5. Case -: 悋惴悸 ... 惠愕惠悽惆 惠悵 惺悋惠 惺悸 忰愕惡 愆惘愀 忰惆惆 : 忰惓 悖 1 -.SELECT CASE悸惆惺悋悋 悸愃惶 悸悋惆惡惆悋悸 惶愃悸 悋悋惺惆悸 : 2 -.expression悋惠惺惡惘 悋悵 惘惆 惠 : 3 - CASE惠惷惺 惡 悋忰惠悋 悋忰惠悋惠 : 悋惠惺惡惘 悋悵 惘惆 惠 . 4 -2,,prob1, prob悋忰惠悋惠 悋惠 惘惆 : 惠悋 惠惺惡惘 . 5 -CASE ELSE惺惆悋 惠忰 悖 悋忰惠悋 : 悋悽惠悋惘悸 . 6 - .END SELECT悋悸 悋悋惺惆悸 : SELECT CASE expression 1CASE prob 1Statments .. 2CASE prob . 2Statments CASE ELSE .. 3Statment . END SELECT
  • 6. select case 惠悋惡惺 SELECT CASE grade CASE 100 to 90 Text1.text= 惠悋慍 CASE 89 to 80 Text1.text = 悴惆 悴惆悋 CASE 79 to 70 Text1.text = 悴惆 CASE 69 to 60 Text1.text = 惡 CASE Else Text1.text = 惘悋愕惡 END SELECT 惓悋
  • 7. 悋悋悴惡 Dim x as string, y as integer ) 悋惘 悽惆悖惆悽 惘悋 1 悒3 ( Y = inputbox ) 悋惘 悽惆悖惆悽 悋愕 悋悴惺悸 ( X = inputbox Select Case y 1 Case ) & x悋悋 悋悋悴惡 愕31 (msgbox 2 Case 悸惆惺悋 悸愃惶愃悸 悋惺惆悸 悋 / 悋悋悴惡 愕31 愕 Select case悋悋 (msgbox )& x 3 Case ) & x悋悋悴惡 愕7 愕31悋悋 (msgbox Case Else ) & x悋惘 悋惆悽 悽悋愀悧 悋悋 (msgbox END SELECT
  • 8. 悋惠愀惡 惠悋惡 悋惺 惠惆惘悋惡 )3-5 ( 悋惠愀惡 悋惘悋惡惺 :- 惡惠悋惡悸 惡惘悋悴 惡悋愕惠悽惆悋 悋悴悋 惡愕 悋 惡悒惆悽悋 惆惘悴悋惠 愀悋惡 悋惆悸 悋忰悋愕惡 悵 悋惆惘悴悋惠 : ) 悋惘 悽惆悖惺悋 悋愕悸 惶 悋悽惠惡悋惘 悋惶 悋 悋惓悋 (忰惓 悋 悋惡惘悋悴 惡忰愕悋惡 悴惺 悵 悋惆惘悴悋惠 愀惡悋惺悸 悋惠惆悋惘 悋 悋惠惆悋惘 悋惠悋 :- 悋惆惘悴悸 悖惓惘 09 悋惠惆悋惘 惠悋慍 98 - 08 悴惆 悴惆悋 97 07 悴惆 05 - 96 惡 0 - 94 惘悋愕惡