手机
当前位置:查字典教程网 >编程开发 >vb.net >VB.NET校验字符串函数
VB.NET校验字符串函数
摘要:VB.NET校验字符串是否是日期'ValidateforadateSharedFunctioncheckdate(ByValthisvalu...

VB.NET校验字符串是否是日期

'Validate for a date Shared Function checkdate(ByVal thisvalue As String) As String If Not IsDate(thisvalue) Then checkdate = "NULL" Else checkdate = "'" & thisvalue & "'" End If Return checkdate End Function ' END checkdate

VB.NET检查字符串是否是数字

'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 'Used to submit values to the database, check for empty value, replace w/ "NULL" '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Shared Function checkNumber(ByVal thisvalue As String) As String If IsDBNull(thisvalue) Or Len(thisvalue) = 0 Or Not IsNumeric(thisvalue) Then checkNumber = "NULL" Else checkNumber = thisvalue End If Return checkNumber End Function ' END checkNumber

以上所述就是本文的全部内容了,希望大家能够喜欢。

【VB.NET校验字符串函数】相关文章:

iOS 8如何省电

YY歪歪频道应用闪亮秀

超实用的iPhone与Mac间极速传输图片的7个方法

vb.net发布水晶报表程序步骤

iphone5s黑白屏设置方法

vb.net读写文件代码

iPhone如何打开音乐并播放歌曲

什么是水晶报表与水晶报表功能分析

iOS8.2正式版升级教程

vb.net验证密码是否复杂的方法

精品推荐
分类导航