vb 子程序或函数未定义
Sub Sheduling_Data()
Type PCB
Name As String * 40
Time As Integer
Priority As Integer
State As String * 40
End Type
Dim a(1 To 20) As PCB
Dim b(1 To 6) As PCB
Dim count As Integer
count = 1
End Sub
Private Sub Command1_Click()
Dim strS1 As String * 40, strS2 As String * 40, strS3 As String * 40
strS1 = "please put into process ID" + Chr(13) + Chr(10) + "(P1,P2... )"
a(1).Name = InputBox$(strS1, "输入框", 100, 100)
strS2 = "please put into burst time(max 100)"
a(count).Time = InputBox$(strS2, "输入框", 100, 100)
strS3 = "please put into priority(1 to 6)"
a(count).Priority = InputBox$(strS3, "输入框", 100, 100)
a(count).State = "new"
count = count + 1
End
一直报错:子程序或函数未定义。郁闷死我了,那位高手来帮帮我啊。谢谢了。