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• $X special variable• $Y special variable$DATAChecks if a variable contains data.$DATA(variable,target)$D(variable,target)ParametersvariabletargetThe variable whose status is to be checked.Optional — A variable into which $DATA returns the current value ofvariable.DescriptionYou can use $DATA to test whether a variable contains data before attempting an operationon it. $DATA returns status information about the specified variable. The variable parametercan be the name of any variable (local variable, process-private global, or global), and caninclude a subscripted array element.The possible status values that may be returned are as follows:196 <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!