子过程问题,很简单,帮忙。
Public Function sprs(instr1 As String, out1 As String, out2 As String)
Dim llenstr As Integer
llenstr = InStr(instr1, ";")
out1 = Left(instr1, llenstr - 1)
out2 = Right(instr1, Len(instr1) - llenstr)
End Function
Private Sub Command1_Click()
sprs Label1.Caption, Text1.Text, Text2.Text
End Sub
为什么不执行?