修改一个asp的bug多多的老系统,,遇到一个奇怪的现象:
当判断 recordset中某项目是否为null时,同样的IsNull()方法,效果却不一样...
这样判断没问题
If IsNull(rs("country")) Then
....
写在方法里面有问题
strCountry = EnCode(rs("country"))
Function EnCode(o)
If IsNull(o) Then '这里有错误
EnCode = ""
修改一个asp的bug多多的老系统,,遇到一个奇怪的现象:
当判断 recordset中某项目是否为null时,同样的IsNull()方法,效果却不一样...
这样判断没问题
If IsNull(rs("country")) Then
....
写在方法里面有问题
strCountry = EnCode(rs("country"))
Function EnCode(o)
If IsNull(o) Then '这里有错误
EnCode = ""