Personal IDL library for M. Galloy

single page | use frames     summary     class     fields     routine details     file attributes


top source mg_n_elements

result = mg_n_elements( [var] [, /no_operatoroverload])

In IDL 8.0, the number of elements of an object can be overloaded with the _overloadSize method for objects which inherit from IDL_Object. It is sometimes useful to know how many array elements are present, not the overloaded value.

Return value



var in optional type=any

variable to find number of elements of


no_operatoroverload in optional type=boolean

set to find the number of array elements in var, not the operator overloaded value

File attributes

Modification date: Mon Nov 29 18:32:23 2010
Lines: 29
Docformat: rst rst
Personal library of Michael Galloy
Contact me if you have enhancement requests or bug fixes.