isEmpty ( ** as_var ) return boolean - Syntax 1

** = all data types

The purpose of the isEmpty function is to check if the specified string variable is empty or not.

It replace the following code usually used :

If isnull( as_var ) or as_var ="" then return -1

or

If isnull( as_var ) or len( trim( as_var) ) =0 then return -1

by a more concise and readable code :

if #.isEmpty( as_var ) then return -1

Last edited Aug 25, 2015 at 3:33 PM by domangep, version 7