📄 ab_test.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "DF1 Test"
ClientHeight = 4695
ClientLeft = 465
ClientTop = 1920
ClientWidth = 7140
ForeColor = &H80000008&
LinkTopic = "Form1"
PaletteMode = 1 'UseZOrder
ScaleHeight = 4695
ScaleWidth = 7140
Begin VB.CommandButton Command2
Appearance = 0 'Flat
Caption = "Write"
Height = 540
Left = 2745
TabIndex = 3
Top = 3015
Width = 1020
End
Begin VB.CommandButton Command1
Appearance = 0 'Flat
Caption = "Read"
Height = 555
Left = 1620
TabIndex = 2
Top = 3015
Width = 1020
End
Begin VB.CommandButton Exit
Appearance = 0 'Flat
Caption = "Exit"
Height = 555
Left = 480
TabIndex = 1
Top = 3015
Width = 1005
End
Begin VB.TextBox Text1
Appearance = 0 'Flat
Height = 2130
Left = 360
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 0
Top = 360
Width = 4935
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
ReDim tb%(10)
Dim st
If ReadTable(0, tb%()) Then
'display results
For st = 0 To 9
Text1.SelText = Str(tb%(st)) + Chr(32)
Next st
Text1.SelText = Chr(13) + Chr(10)
End If
End Sub
Private Sub Command2_Click()
ReDim tm%(5)
tm%(0) = Rnd * 32768
tm%(1) = Rnd * 32768
tm%(2) = Rnd * 32768
tm%(3) = Rnd * 32768
tm%(4) = Rnd * 32768
If Not WriteTable(4, tm%()) Then
Text1.SelText = "Error Writing"
End If
End Sub
Private Sub Exit_Click()
End
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -