count, _count. Number of hash keys
^hash._count[]
^hash.count[]
[3.4.4]
The method returns number of hash keys.
Example
Code…
$man[
$.name[
Jack
]
$.age[
22
]
$.sex[
m
]
]
^man.count[]
…will return:
3
When used in mathematical expressions, numerical value of hash is equal to its keys' number:
^if($man > 2){
greater
}
Copyright © 19972025 Art. Lebedev Studio |
http://www.artlebedev.com
Last updated: 06.01.2016