Function OrdCount() Foundation

Determines the number of open indexes in a work area.

Syntax
OrdCount() --> nOrdCount
Return

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

Description

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

Examples
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) ) 
NEXT 

Feedback

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.