topchkstru
Utilities
Return value
CHKSTRU returns 1 if successful, otherwise 0.
Parameters
structure
in
required
type: struct
fields
in
required
type: string
Keywords
INDEX
type: string
VERBOSE
Examples
test = { a:1, b:2, c:3 }
required = ['a','c']
if CHKSTRU(test,required) then print,'found a and c.'
IDL> print, CHKSTRU(test,'b')
1
IDL> print, CHKSTRU(test,'b',/extract)
2
Version history
Version
$Id: chkstru.pro 327 2007-12-13 16:22:35Z pinsard $
Copyright (C) 1998, Martin Schultz, Harvard University
This software is provided as is without any warranty
whatsoever. It may be freely used, copied or distributed
for non-commercial purposes. This copyright notice must be
kept with any copy of this software. If this software shall
be used commercially or sold as part of a larger package,
please contact the author to arrange payment.
Bugs and comments should be directed to mgs@io.harvard.edu
with subject "IDL routine chkstru"
History
mgs, 02 Mar 1998: VERSION 1.00
mgs, 07 Apr 1998: - second parameter (FIELDS) now optional
12 Jan 2001: EXTRACT keyword by S. Masson (smasson@lodyc.jussieu.fr)
Statistics
McCabe cyclic | 13 |
McCabe essential | 1 |
McCabe modular design | 1 |