25.01.2015 Views

Using Caché ObjectScript - InterSystems Documentation

Using Caché ObjectScript - InterSystems Documentation

Using Caché ObjectScript - 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.

8.2.3 Procedure Variables ........................................................................................................ 80<br />

8.2.4 Public and Private Procedures ....................................................................................... 82<br />

8.2.5 Procedure Parameters ..................................................................................................... 82<br />

8.2.6 Procedure Code ............................................................................................................. 84<br />

8.2.7 Indirection, Xecute Commands, and the Job Commands within Procedures ................ 85<br />

8.2.8 Error Traps within Procedures ...................................................................................... 86<br />

8.3 Legacy User-Defined Code ...................................................................................................... 86<br />

8.3.1 Subroutines ..................................................................................................................... 86<br />

8.3.2 Functions ....................................................................................................................... 88<br />

9 <strong>ObjectScript</strong> Macros and the Macro Preprocessor ....................................................................... 93<br />

9.1 <strong>Using</strong> Macros ........................................................................................................................... 93<br />

9.1.1 Creating Custom Macros ............................................................................................... 94<br />

9.1.2 Saving Custom Macros .................................................................................................. 95<br />

9.1.3 Invoking Macros ............................................................................................................. 96<br />

9.1.4 Referring to External Macros (Include Files) ................................................................ 96<br />

9.2 Preprocessor Directives Reference ........................................................................................... 96<br />

9.2.1 #; ..................................................................................................................................... 97<br />

9.2.2 #Def1Arg ........................................................................................................................ 97<br />

9.2.3 #Define ........................................................................................................................... 98<br />

9.2.4 #Dim ............................................................................................................................... 99<br />

9.2.5 #Else ............................................................................................................................... 99<br />

9.2.6 #ElseIf .......................................................................................................................... 100<br />

9.2.7 #EndIf ........................................................................................................................... 100<br />

9.2.8 #Execute ....................................................................................................................... 100<br />

9.2.9 #If ................................................................................................................................. 101<br />

9.2.10 #IfDef ......................................................................................................................... 101<br />

9.2.11 #IfNDef ...................................................................................................................... 102<br />

9.2.12 #Import ....................................................................................................................... 102<br />

9.2.13 #Include ...................................................................................................................... 103<br />

9.2.14 #NoShow .................................................................................................................... 103<br />

9.2.15 #Show ......................................................................................................................... 103<br />

9.2.16 #SQLCompile Mode .................................................................................................. 104<br />

9.2.17 #SQLCompile Path .................................................................................................... 104<br />

9.2.18 #SQLCompile Select .................................................................................................. 105<br />

9.2.19 #UnDef ....................................................................................................................... 106<br />

9.2.20 ##; ............................................................................................................................... 107<br />

9.2.21 ##Continue ................................................................................................................. 107<br />

9.2.22 ##Expression .............................................................................................................. 108<br />

9.2.23 ##Function ................................................................................................................. 109<br />

9.2.24 ##lit ............................................................................................................................ 110<br />

9.2.25 ##SQL ........................................................................................................................ 110<br />

9.2.26 ##Unique .................................................................................................................... 110<br />

9.3 <strong>Using</strong> System-supplied Macros .............................................................................................. 111<br />

9.3.1 Making System-supplied Macros Accessible .............................................................. 111<br />

9.3.2 System-supplied Macro Reference .............................................................................. 111<br />

10 Multidimensional Arrays ............................................................................................................. 115<br />

10.1 What Multidimensional Arrays Are ..................................................................................... 115<br />

10.1.1 Multidimensional Tree Structures .............................................................................. 115<br />

10.1.2 Sparse Multidimensional Storage .............................................................................. 116<br />

10.1.3 Settings for Multidimensional Arrays ........................................................................ 116<br />

vi<br />

<strong>Using</strong> <strong>Caché</strong> <strong>ObjectScript</strong>

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

Saved successfully!

Ooh no, something went wrong!