"Fossies" - the Fresh Open Source Software Archive

Member "dx-4.4.4/html/pages/progu168.htm" (1 Mar 2002, 4727 Bytes) of package /linux/misc/old/dx-4.4.4.tar.gz:

Caution: In this restricted "Fossies" environment the current HTML page may not be correctly presentated and may have some non-functional links. You can here alternatively try to browse the pure source code or just view or download the uninterpreted raw source code. If the rendering is insufficient you may try to find and view the page on the dx-4.4.4.tar.gz project site itself.

IBM Visualization Data Explorer Programmer's Reference

[ Bottom of Page | Previous Page | Next Page | Table of Contents | Partial Table of Contents | Index ]



Provides access to the components of a Field by index rather than by name.


#include <dx/dx.h>

Object DXGetEnumeratedComponentValue(Field f, int n, char **name)

Functional Details

Provides access to all components of the Field f without requiring a list of component names. We might, for example, find all components that are dependent on positions by using DXGetEnumeratedComponentValue in a looping construct in which DXGetEnumeratedComponentAttribute (or, using the name returned by DXGetEnumeratedComponentValue, using DXGetComponentAttribute) is used to access the "dep" attribute of each component.

The components of Field f may be indexed by calling DXGetEnumeratedComponentValue with successive values of n until NULL is returned. The name of the component is returned in *name.

Note: DXGetEnumeratedComponentAttribute would not be suitable for use in the looping construct because it will return NULL if the nth component doesn't have the specified component, even if there are more than n components.

Return Value

Returns the value of the component or returns NULL but does not set an error code if n is out of range.

See Also

DXGetComponentAttribute, DXGetComponentValue, DXGetEnumeratedComponentAttribute

12.1 , "Field Class".

[ Top of Page | Previous Page | Next Page | Table of Contents | Partial Table of Contents | Index ]
[Data Explorer Documentation | QuickStart Guide | User's Guide | User's Reference | Programmer's Reference | Installation and Configuration Guide ]

[Data Explorer Home Page]

[IBM Home Page | Order | Search | Contact IBM | Legal ]