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

DOEVENTS «ü¥O«Ü­«­n

DOEVENTS «ü¥O«Ü­«­n

¤Ñ¤U¬°¤½

¦^´_ 15# ui123


    ÁÂÁ §Aªº ÁÂÁÂ
´N ·P¤ß£°
¤Ñ¤U¬°¤½

TOP

ÁÂÁ¤j¤jªº¸Ñ»¡

TOP

¦^´_ 13# handsometrowa


    Excel ªº VBA «ÜÅQ¹D¡C
§A¥i¥H·Q¹³¡A¹q¸£ªº CPU ´N¹³¬O À\ÆUªº waiter,
¥u¦³ ¤@­Ó water, ¥L­n ¦P®É¦ø­Ô ¤Q´X®àªº «È¤H¡A
CPU ´N¦b¤£¦Pªº®à¤l ¤¤¶¡¡AÂà°Ú Â઺¡C
¦ý¬O¡AVBA ´N«ÜÅQ¹Dªº ¹J¨ì °j°éªº®É­Ô¡A´N¸j¦í CPU
¤£Åý¥L Âà¥x¡A©âªÅ¥h ¦ø­Ô §Oªº ®à¤l¡A
¾É­P ¡A³s ¦Û¤v¤]µLªk §¹¦¨¨Æ±¡¡C

Ä´¦p»¡¡A§Úªº °j°é¡A¬O­n ºÊ´ú ¬O§_¦³ DDEªº³ø»ù¸ê®Æªñ¨Ó¡C
CPU ¦pªG¤£Åý¥X¥h ¡A«ù¦æ DDE ³ø»ùªº°Ê§@¡A
§Úªº °j°é¡A¦A«ç»òÂà¡A¤]°»´ú¤£¨ì ·s¶i¨Óªº ³ø»ù¸ê®Æ¡C

µ²ªG¤j®a³£ ¤£­n ¿ì¨Æ¡C

DoEvents §âCPU ªº®É¶¡¡AÂàÅý¥X¥h¡A¦ø­Ô §O®àªº«È¤H¡C
³o¼Ë¤l¡A¤j®a³£¥i¥H°Ê¤F¡A¦h¦nªº ¨Æ±¡¡C
«Ü¹³¬O ª±¸õ´Ñ¡C§AÄÒ§Ú¡A§Ú¾×§A¡A¤j®a³£°Ê¤£¤F
¤Ñ¤U¬°¤½

TOP

¦^´_ 12# sjgau


   ªO¤j

¨ä¹êDoevents ³o­Ó¨ç¼Æ

¯à¤£¯à¥Î¥Õ¸Ü¤å¸ÑÄÀ¤@¤U©O@@" §Ú¤§«e¤]¦³¥h¬d³o­Ó¨ç¼Æªº¸ê®Æ

¥i¯à¤£¬O¬ì¯Z¥X¥ÍªºÃö«Y§a

»¡¯uªº ¥Lªº²¾¥æµ{¦¡¨ì©³¬O¤°»ò·N«äªü@@?

TOP

Timer ¨ç¼Æ½d¨Ò
¥»½d¨Ò¨Ï¥Î Timer ¨ç¼Æ¨ÓÅýÀ³¥Îµ{¦¡¼È°±¡C½d¨Ò¤¤¦b¼È°±®É¨Ï¥Î¨ì DoEvents ¨Ó±Nµ{¦¡°õ¦æÅvÅýµ¹¨ä¥¦µ{¦¡¡C

Dim PauseTime, Start, Finish, TotalTime
If (MsgBox("Press Yes to pause for 5 seconds", 4)) = vbYes Then
    PauseTime = 5    ' ³]©w¼È°±®É¶¡¡C
    Start = Timer    ' ³]©w¶}©l¼È°±ªº®É¨è¡C
    Do While Timer < Start + PauseTime
        DoEvents    ' ±Nµ{¦¡°õ¦æÅvÅýµ¹¨ä¥¦µ{¦¡¡C
    Loop
    Finish = Timer    ' Ū¨ú²{¦b®É¨è¡C
    TotalTime = Finish - Start    ' ­pºâ¼È°±©Ò¸g¹Lªº®É¶¡¡C
    MsgBox "Paused for " & TotalTime & " seconds"
Else
    End
End If
¤Ñ¤U¬°¤½

TOP

irnd(s1, 100, 999, c);

¨Æ¥ý¡AÅý rv1= rv2= c

doEvents() ·|¶Ç¦^¤@­Ó­È --> RV2
if (rv2 <> rv1 )  ªí¥Ü doEvents() ¤w¸g§â¨Æ±¡°µ§¹¡A
¦Ó¥B¶Ç¦^ ¤@­Ó ·sªº­È
¤Ñ¤U¬°¤½

TOP

¦^´_ 9# sjgau

·PÁÂ
ss

TOP

¦^´_ 8# sunnyso

§Ú¦³¡A½Ðµ¹§Ú ¤@ÂIÂI®É¶¡¡A
½ÐºCºC¦a ±K¤ÁÆ[¹î ³o­Ó ªOªO
¤Ñ¤U¬°¤½

TOP

¦^´_ 7# sjgau


    ¦³¦ó¤èªk­pºâ®Ä²v®t©O¡H
ss

TOP

        ÀR«ä¦Û¦b : ¬°¤H³B¥@­n¤p¤ß²Ó¤ß¡A¦ý¤£­n¡u¤p¤ß²´¡v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD