📄 frmdoloopuntil.frm
字号:
VERSION 5.00
Begin VB.Form frmDoLoopUntil
Caption = "Fig. 5.14: Do/Loop Until"
ClientHeight = 1965
ClientLeft = 2280
ClientTop = 2520
ClientWidth = 4680
BeginProperty Font
Name = "MS Sans Serif"
Size = 13.5
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
LinkTopic = "Form1"
ScaleHeight = 1965
ScaleWidth = 4680
Begin VB.CommandButton cmdPrint
Caption = "Print"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 1740
TabIndex = 0
Top = 1350
Width = 1215
End
End
Attribute VB_Name = "frmDoLoopUntil"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
' Fig. 5.14
' Demonstrating the Do/Loop Until repetition structure
Option Explicit ' General Declaration
Private Sub cmdPrint_Click()
Dim counter As Integer
counter = 1
Do
Print counter & Space$(2);
counter = counter + 1
Loop Until counter = 10
Print
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -