| :: Check for IsNull/IsEmpty or = "" |
Author |
Jemima Chadwick |
Language |
VB5, VB6 |
Operating
Systems |
Windows 95, 98, NT, Me
and 2k |
| Tip |
'Most of the time, it is difficult to trace and differentiate the check for IsNull(value)
'or IsEmpty(value) or (value = "").
'We end up writing code that would satisfy all the three by including all the three checks.
'This can be achieved by concatenating "" to the value and check if it is equal to "".
'I mean,
(value & "") = ""
'This is a simple yet useful programming tip that I have encountered for basic
'validation in developing projects.
|
|
 |
|
 |