comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Passing a structured variable as an argument of procedure
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Passing a structured variable as an argument of procedure [message #14705 is a reply to message #14703] Mon, 22 March 1999 00:00 Go to previous message
Ivan Zimine is currently offline  Ivan Zimine
Messages: 40
Registered: February 1999
Member
VU KHAC Tri wrote:
>
> Hi folks,
>
> I'm very new in IDL programming.
> My question is can I pass a structured variable as an argument of a
> procedure ?
yes

> How to define this ?

PRO test, struct

; check if variable is a structure
IF Size(struct, /type) NE 8 THEN BEGIN
Message, "Parameter must be a structure", /continue
Return
ENDIF

; to get an array of strings with field names
fields=Tag_Names(struct)
.
.
.
END

--
Ivan Zimine
Dpt. of Radiology (MRI), Geneva University Hospitals
email: ivan.zimine@physics.unige.ch
tel. : (+41 22) 372 70 70
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Strange Bug with numeric double constants
Next Topic: Re: PLOTs with colour regions

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 14:45:32 PDT 2025

Total time taken to generate the page: 1.12197 seconds