11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Caché</strong> <strong>ObjectScript</strong> Functions• $ISVALIDNUM function• $NORMALIZE function• $NUMBER function• More information on locales in Customized National Language Translations$ISOBJECTReturns whether an expression is an object reference.$ISOBJECT(expr)ParametersexprA <strong>Caché</strong> <strong>ObjectScript</strong> expression.Description$ISOBJECT returns 1 if expr is an object reference. $ISOBJECT returns 0 if expr is notan object reference.$ISOBJECT returns –1 if expr is a reference to an invalid object. Invalid objects should notoccur in normal operations; an invalid object could be caused, for example, by recompilingthe class while instances of the class are active.To remove an object reference, set the variable to the null string (""). The obsolete %Close()method cannot be used to remove an object reference. %Close() performs no operation andalways returns successful completion. Do not use %Close() when writing new code.ParametersexprAny <strong>Caché</strong> <strong>ObjectScript</strong> expression.ExamplesThe following example shows the values returned by $ISOBJECT for an object referenceand a non-object reference (in this case, a string reference):230 <strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong>

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

Saved successfully!

Ooh no, something went wrong!