Functions and Directives

Function OrdCount() Foundation

Determines the number of open indexes in a work area.

OrdCount() --> nOrdCount

OrdCount() returns the number of open indexes as a numeric value. When no index is open, the return value is 0.


The function is used to determine how many indexes are open in a work area.

Determine all index key expressions
// This example shows a code snippet that gathers all 
// index key expressions of the current workarea 

aOrdKeyList := {} 

FOR i:=1 TO OrdCount() 
   AAdd( aOrdKeyList , OrdKey(i) ) 


If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.