一个按钮一个文本框,点击按钮,文本框内的内容减去一个字符,下面是我写的
Private Sub Command1_Click()
Dim t As String, b As String
t = Text1.Text
b = Right(x, 1)
Text1.Text = Text1.Text - b
End Sub
运行时出错“类型不匹配”
Private Sub Command1_Click()
Dim t As String, b As String
t = Text1.Text
b = Right(x, 1)
Text1.Text = Text1.Text - b
End Sub
运行时出错“类型不匹配”
解决方案 »
- 十万火急,VB6.0使用ADOX操作ACCESS,在两列之间插入新列
- 窗体显示任意大小、颜色和位置的图形
- [ODBC Visual Foxpro driver] syntax error错误求救
- 屏保的问题?
- VB操作网页
- 请教99200视频采集压缩卡的调用
- 解决 FtpFindFirstFile 返回文件名乱码问题
- 关于快捷键的问题
- 关于Treeview的ToolTip的问题
- VB中有没有一个函数,只知道秒数,可以转换成几天几小时几分几秒?
- 关于调用CommonDialog进行打印的???????????????????
- 怎样用VB代码来设置Mschart控件Y轴的最大值和最小值?在线等......
Private Sub Command1_Click()
Dim t As String, b As String, s As Integer, m As Integer
t = Text1.Text
s = Len(t)
m = s - 1
b = Left(t, m)
Text1.Text = b
End Sub
If Text1.Text <> "" Then Text1.Text = Left(Text1.Text, Len(Text1.Text) - 1)
End Sub
Text1.SetFocus
Text1.SelStart = Len(Text1.Text)
SendKeys Chr(8)
End Sub
Exit Sub
End If
Text1.Text = Mid(Text1.Text, 1, Len(Text1.Text) - 1)