Empty string: Difference between revisions

Content added Content deleted
No edit summary
No edit summary
Line 1,219: Line 1,219:


=={{header|Harbour}}==
=={{header|Harbour}}==
<lang visualfoxpro>// in Harbour we have several functions to check emptiness of a string, f.e. hb_IsNull(), Len(), Empty() et.c.,
</lang><lang visualfoxpro>
// in Harbour we have several functions to check emptiness of a string, f.e. hb_IsNull(), Len(), Empty() et.c.,
// we can also use comparison expressions like [cString == ""] and [cString != ""], yet the most convenient
// we can also use comparison expressions like [cString == ""] and [cString != ""], yet the most convenient
// of them is `Empty()` (but that depends on personal coding style).
// of them is `Empty()` (but that depends on personal coding style).
Line 1,226: Line 1,225:
? Empty( cString ) // --> TRUE
? Empty( cString ) // --> TRUE
IF ! Empty( cString ) // --> FALSE
IF ! Empty( cString ) // --> FALSE
? cString
? cString
ENDIF</lang>
ENDIF</lang>