The two parameters that we often use in ASP are IsNull and IsEmpty, which we use when we judge that a string is empty. For example, a string is str1, often we use the If IsNull (str1) or IsEmpty (STR1) then to determine whether the string is null by
Description: Set Aa=server.createobject ("DDD")
ISNULL description pointer is null, pointer to an invalid position, that is, the object does not exist,
IsEmpty Note the pointer points to a valid location, but the value is null
1, empty string
First, IsEmpty grammar
Returns a Boolean value that indicates whether the variable has been initialized.
Grammar
IsEmpty (expression)
The necessary expression parameter is a Variant that contains a numeric or string expression. However, because
The operation object of the stringutils method is Java. lang. string-type objects are complementary to the string-type operation method provided by JDK, and are null safe (that is, if the input parameter string is null, nullpointerexception is not
Sometimes we are very entangled, what is the difference between isNull, IsEmpty and the "empty string"?
IsNull ()
A Null value indicates that the variable does not contain valid data. Null differs from Empty, which indicates that the variable was
Difference between isEmpty and null and ""; Difference between isemptynull
Some time ago I read other people's code and found that sometimes I use isEmpty, sometimes I use null, and sometimes I use "". I am confused about the differences between the
The operation object of the stringutils method is Java. lang. string-type objects are complementary to the string-type operation method provided by JDK, and are null safe (that is, if the input parameter string is null, nullpointerexception is not
Difference of 1. IsNull ()
Null value indicates that the variable does not contain valid data. Null differs from Empty, which indicates that the variable was uninitialized. Null is also different from a 0-length string (""), and a 0-length string
Remotepath! = NULL and! Differences between textutils. isempty (remotepath)
! Textutils. isempty (remotepath) and remotepath! = NULL & remotepath. length> 0
Or initialize remotepath = NULL. In this case, only the remotepath is determined! =
I believe many Java programmers when writing code when it is necessary to determine whether a string is empty when the StringUtils class will use the Isblank and IsEmpty methods, what is the difference between the two methods? Let's use a piece of
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.