While Amibroker’s function library is extensive, I believe there is still room for some function additions. I am wondering if there is a separate Tag or another website where I much find a library of string, math, file and other utility functions.
As an example, I extended the IsNull function to meet my own need, as follows:
//***************************************************************
function IsBlank(variantValue) // Returns true if string, array or number is empty
//***************************************************************
{
result = False;
variantType = typeof(variantValue);
switch( variantType )
{
case "string":
result = IIf(variantValue == "",True, False);
break;
case "array":
result = IsNull(variantValue);
break;
case "number":
result = IsNull(variantValue);
break;
default:
result = False;
break;
}
return result;