11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Caché</strong> <strong>ObjectScript</strong> FunctionsA function performs an operation and returns a value. This value may be the result of theoperation, or an indicator that the operation completed successfully or failed. By convention,<strong>Caché</strong> functions that set a variable to a value set the variable, then return the value of thatvariable prior to the operation.This document describes <strong>Caché</strong>-supplied (intrinsic) functions. These functions are identifiedby a $ character prefix to the name and parentheses following the name. You can supplementthese functions by creating user-defined (extrinsic) functions (identified by a $$ prefix). Inthis manual, <strong>Caché</strong> <strong>ObjectScript</strong> intrinsic functions are divided into four groups:• General Functions.• Math and Time/Date Functions (the names of which begin with “$Z”.).• System and Other Functions (the names of which begin with “$Z”, and include the$ZUTIL functions.)• Legacy (obsolete) Functions.The names of <strong>Caché</strong> <strong>ObjectScript</strong> special variables also begin with a $ character, but specialvariables have no parentheses.For more information on <strong>Caché</strong> <strong>ObjectScript</strong> functions generally, see the Functions chapterof Using <strong>Caché</strong> <strong>ObjectScript</strong>; for more information on defining your own functions, see User-Defined Code in Using <strong>Caché</strong> <strong>ObjectScript</strong>.To invoke an intrinsic function, use the form:$name(parameters)<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 177

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!