标题:错误“438”求指导
取消只看楼主
林霖零
Rank: 1
等 级:新手上路
帖 子:7
专家分:0
注 册:2014-8-29
结帖率:33.33%
已结贴  问题点数:10 回复次数:0 
错误“438”求指导
求大神指导看看代码错哪里了,怎么改
Rem*****************************************

Private Sub Form_load()
cmdDelete.Enabled = True
End Sub
Private Sub cmdSave_Click()
Dim mname As String, mesx As String
Dim mscore As String
mname = Left(LTrim(txtName.Text) + Space(5), 5)
If (Len(RTrim(mname)) = 0) Then
MsgBox ("姓名不能为空!请重新输入。")
txtName.SetFocus
Exit Sub
End If
msex = IIf(OptMale.Value, "男", "女")
mscore = Left(Str(Val(TxtScore.Text)) + Space(6), 6)
lstStudent.AddItem mname & "" & msex & "" & mscore??实时错误“438”,对象不支持该属性或方法

txtName.Text = ""
OptMale.Value = True
TxtScore.Text = ""
txtName.SetFocus

End Sub
Private Sub lstStudent_Click()
cmdDelete.Enabled = True
End Sub
Private Sub cmdDelete_Click()
Dim mname As String
If (lstStudent.ListIndex < 0) Then
MsgBox ("还没有选择要删除的对象!")
Else
mname = RTrim(Left(istStudent.List(lstStudent.ListIndex), 4))
lstStudent.RemoveItem lstStudent.ListIndex
MsgBox ("""&mname&""已被删除! ")
End If
cmdDelete.Enabled = False
End Sub
Private Sub cmdExit_Click()
End

End Sub
Rem*******************************************
搜索更多相关主题的帖子: 姓名 
2014-12-14 14:07



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-439927-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.256876 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved