ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] for °j°é ³Ì«áµ²ªG

[µo°Ý] for °j°é ³Ì«áµ²ªG

½Ð°Ý¤@¤U¦U¦ì¤j¤j

¤p§Ì¦³­Ó°j°éªºÅ޿褣¤ÓÀ´
  1. Sub test()

  2.     Dim sum As Integer
  3.     Dim i As Integer
  4.    
  5.         sum = 0

  6.         For i = 1 To 5
  7.             sum = sum + 1
  8.             Debug.Print i
  9.         Next
  10.         Debug.Print i

  11. End Sub
½Æ»s¥N½X
³Ì«á¦L¥Xi¬O6

¥i¬Ofor °j°éi¤£¬O¶]¨ì5¦Ó¤w¶Ü???

¬°¤°»ò³Ì«á·|¬O¦L¥X6§r???


³Â·ÐÀ°¤p§Ì¸Ñ¸Ñ´b  ·PÁ  :  )
¥Î¥\¨ì¥@¬É¥½¤é¨º¤@¤Ñ¡ã¡ã¡ã

¦^´_ 1# li_hsien

°j°éªº§@¥Î¬OÅܼƥHµ¥®t­È(step)¤è¦¡¶¶§Ç¼W´î
·í¹J¨ìnext´N·|±NÅܼƥ[¤Wstep­È
·íÅܼƭȹF¨ì°j°éµ²§ô±ø¥ó´N¸õ¥X°j°é
©Ò¥H·íi=5®ÉÁÙ¨S¨ì¹F¸õ¥X°j°é
¦ý¬O°õ¦æ¨ì¤U¤@¦ænext®É¡A¦]¬°¥[¤Jstep­È1¦¨¬°6
¤w¸g¶W¥X°j°é³Ì¤j­È¡A´Nµ²§ô°j°é¡A¦¹®Éªº­È·íµM¬O­n¶W¥X°j°é­È¡C
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 2# Hsieh

§Ú¥H¬°¬O¹³¦r­±¤W¤@¼Ë´N¶]1~5

©Ò¥H³o¸òDo Whileªº·Qªk®t¤£¦hÅo???

¨S³]©wµ¥®t¦h¤Ö?

´Nstep´Nª½±µ¬°1ªº·N«ä§a?


·PÁ¤j¤j¸Ñ´b  ¤@¾ã­ÓÂç²M¤F¤@­ÓÂI
¥Î¥\¨ì¥@¬É¥½¤é¨º¤@¤Ñ¡ã¡ã¡ã

TOP

¦^´_ 3# li_hsien


    do.. loop¤]¬O°j°é
¥u¬Ofor....nextªº°j°é¥X¤f¤w¸g³Q«ü©w
´Nºâ°j°é·í¤¤¨S¦³¥X²{²Å¦Xªº±ø¥ó
·í°j°é°õ¦æ§¹³Ì«á¤@¦¸¡A´N¦Û°Ê¸õ¥X°j°é
do....loop«h¤£¦P¡A«ü©w°j°éªì©l­È«á
·|¨Ì¾Ú«ü©wªº±ø¥ó¨M©w¬O§_Ä~Äò
·í¹Bºâ¹Lµ{¤¤¨S¦³¹F¨ì°h¥X°j°éªº±ø¥ó´N·|Ä~Äò²Ö¥[
³y¦¨µL½a°j°é¡A¾É­P¹BºâµLªk²×¤î
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 4# Hsieh

ÁÂÁªO¤jªº¸ÑÄÀ

§Ú¤@¶}©l¥u¥H¬°¥L´N¶]1~5

­ì¨Ó¥LÁÙ¬O·|²Ö¥[¨ì6,¦ý¦]¬°for¥u¨ì5,©Ò¥H¤£Ä~Äò°j°é¦]¦Ó°±¤î¤F
¥Î¥\¨ì¥@¬É¥½¤é¨º¤@¤Ñ¡ã¡ã¡ã

TOP

        ÀR«ä¦Û¦b : ¦¨¥\¬OÀuÂIªºµo´§¡A¥¢±Ñ¬O¯ÊÂIªº²Ö¿n¡C
ªð¦^¦Cªí ¤W¤@¥DÃD