12.07.2015 Views

Using Caché Globals - InterSystems Documentation

Using Caché Globals - InterSystems Documentation

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

SQL and Object Use of Multidimensional Storage/// Return the number of objects for this class./// Equivalent to SELECT COUNT(*) FROM PersonClassMethod Count() As %Integer{New total,chunk,dataSet total = 0Set chunk = $Order(^MyApp.PersonI("$Person",""),1,data)While (chunk '= "") {Set total = total + $bitcount(data,1)Set chunk = $Order(^MyApp.PersonI("$Person",chunk),1,data)}}Quit total44 <strong>Using</strong> <strong>Caché</strong> <strong>Globals</strong>

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

Saved successfully!

Ooh no, something went wrong!