Hàm IsNull VBScript
❮ Toàn bộ tài liệu tham khảo VBScript
Hàm IsNull trả về giá trị Boolean cho biết liệu một biểu thức được chỉ định có chứa dữ liệu hợp lệ hay không (Null). Nó trả về True nếu biểu thức là Null; nếu không, nó trả về False.
Cú pháp
IsNull(expression)
Parameter | Description |
---|---|
expression | Required. An expression |
Thí dụ
Thí dụ
<%
Dim x
response.write(IsNull(x) & "<br />")
x=10
response.write(IsNull(x) & "<br />")
x=Empty
response.write(IsNull(x) & "<br />")
x=Null
response.write(IsNull(x))
%>
Đầu ra của đoạn mã trên sẽ là:
False
False
False
True
❮ Toàn bộ tài liệu tham khảo VBScript