好æ£ï¼doeventsæ¯ææ³è¦çã
ä¸è¿ï¼æ个å°é®é¢ï¼ç¹commend2åæ¢åï¼å次ç¹å»commend1ï¼text1å°±åªæ¾ç¤ºâ2âï¼ä¹åæ 论ç¹å»commend1è¿æ¯commend2ï¼text1é½ä¸å¨äºã请大ç¥åæç¹ä¸ä¸ï¼é®é¢å¯è½å¨åªéï¼
vb 点击一个button运行一个无限循环,点击另一个button使循环终止...
Option Explicit Dim i Dim flag As BooleanPrivate Sub Command1_Click() For i = 1 To 10000000000000# i = i + 1 Text1 = i DoEvents If flag Then Debug.Print flag Exit For Else End If NextEnd SubPrivate Sub Command2_Click() flag = Tr...