About Chandra Archive Proposer Instruments & Calibration Newsletters Data Analysis HelpDesk Calibration Database NASA Archives & Centers Chandra Science Links

Skip the navigation links
Last modified: December 2006

URL: http://cxc.harvard.edu/ciao3.4/assoc_get_keys.tm.html
Hardcopy (PDF): A4 | Letter
AHELP for CIAO 3.4 assoc_get_keys Context: slangrtl

Synopsis

Return all the key names of an Associative Array

Syntax

String_Type[] assoc_get_keys (Assoc_Type a)

Description

This function returns all the key names of an associative array a as an ordinary one dimensional array of strings. If the associative array contains no keys, an empty array will be returned.

Example

The following function computes the number of keys in an associative array:

      define get_num_elements (a)
      {
         return length (assoc_get_keys (a));
      }
Hardcopy (PDF): A4 | Letter
Last modified: December 2006



The Chandra X-Ray Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory.
60 Garden Street, Cambridge, MA 02138 USA.    Email: cxcweb@head.cfa.harvard.edu
Smithsonian Institution, Copyright © 1998-2004. All rights reserved.