Hàm IsNull VBScript

Định nghĩa và cách sử dụng

Hàm IsNull có thể trả về giá trị boolean chỉ ra biểu thức có phải dữ liệu无效 không. Nếu biểu thức là Null, thì trả về True, ngược lại trả về False.

Cú pháp

IsNull(expression)
Tham số Mô tả
expression Yêu cầu. Biểu thức.

Mô hình

dim x
document.write(IsNull(x))
x=10
document.write(IsNull(x))
x=Empty
document.write(IsNull(x))
x=Null
document.write(IsNull(x))

Ghi ra riêng biệt:

Sai
Sai
Sai
Đúng