Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
8
Task/Empty-string/Harbour/empty-string.harbour
Normal file
8
Task/Empty-string/Harbour/empty-string.harbour
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
// 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
|
||||
// of them is `Empty()` (but that depends on personal coding style).
|
||||
cString := ""
|
||||
? Empty( cString ) // --> TRUE
|
||||
IF ! Empty( cString ) // --> FALSE
|
||||
? cString
|
||||
ENDIF
|
||||
Loading…
Add table
Add a link
Reference in a new issue