送分100分,非常简单但急用:VB6有没有判断文本框中输入的数据是否为整型数的函数 VB6有没有判断文本框中输入的数据是否为整型数的函数 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Private Sub Command1_Click() Dim a As Double a = 3.143 If a = Int(a) Then msgbox "为整型数" End If End Sub 写成函数Private Sub Command1_Click() If fun_IsInt(Text1.Text) Then MsgBox Text1.Text & " 为整型数" End If End SubPrivate Function fun_IsInt(ByVal dblNum As Double) As Boolean fun_IsInt = False If dblNum = Int(dblNum) Then 'MsgBox dblNum & " 为整型数" fun_IsInt = True End IfEnd Function 奇怪的错误:找不到可安装的ISAM 请大家帮忙看看 如何去掉Excel某一列中内容相同的行? 软件有奖测试!!! 如何实时捕获listview控件选择结果? 动态添加用户控件后获取控件的事件? VB关于语音朗读汉字问题 各位师兄,想问一本书(王国荣的)的书具体内容?! 国庆佳节,祝大家开心愉快! mscomm 请教大家,怎么取得系统当前登录的用户名啊,给出代码好吗!!急!!能通过注册表读出来么?? 关于SQL查询的简单问题 如何使用jmail.dll发送和接收邮件呢?
Dim a As Double
a = 3.143
If a = Int(a) Then
msgbox "为整型数"
End If End Sub
Private Sub Command1_Click()
If fun_IsInt(Text1.Text) Then
MsgBox Text1.Text & " 为整型数"
End If
End SubPrivate Function fun_IsInt(ByVal dblNum As Double) As Boolean
fun_IsInt = False
If dblNum = Int(dblNum) Then
'MsgBox dblNum & " 为整型数"
fun_IsInt = True
End IfEnd Function