帮我 vb难题

来源:百度知道 编辑:UC知道 时间:2024/05/07 03:14:17
Option Explicit
Dim xx1(50) As String
Dim xingming(50) As String
Dim d1(50) As Integer
Dim d2(50) As String
Dim y1(50) As Integer
Dim n1 As Integer, n2 As Integer
Dim xuhao As Integer, renshu As Integer
Private Sub Command3_Click()
xuhao = renshu
X1 = xingming(xuhao)
d1 = Str(nianling(xuhao))
d2 = dizhi(xuhao)
yi = youbian(xuhao)
If xingbie(xuhao) = 1 Then
n1.Value = True
Else
n2.Value = True
End If
End Sub

Private Sub Command4_Click()
If xuhao = renshu Then
MsgBox ("最后一个了,烦")
Else
xuhao = xuhao + 1
Call prtrec
End If
End Sub

Private Sub Command5_Click()
If xuhao = renshu Then
MsgBox ("最前一个了,烦")
Else
xuhao = xuhao - 1
Call prtrec
End If
End Sub

Private Sub Command6_Click()
xuhao = 1
X1 = xingming(xuhao)
d1 = Str(nianling(xuhao))
d2 = dizhi(xuhao)

拜托,你不描述错误现象,不会有人看你的代码的!
就好像你去医院,直接告诉医生:“你看看我有什么毛病?”

你是什么意思说清楚把窗体也帖出来

搞笑啊
同意一楼
你是在害人啊
想累死医生啊
楼主:“你看看我有什么毛病?”
医生:“你看看你有什么毛病?”
楼主:“我那里知道?”
医生:“运行时看看出现错误提示时记录下错误编号和指针的位置,OK?”
楼主:“然后?”
医生:“上百度知道啊”

全都是有错误吧...