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

Home » Public Forums » archive » Structure in argument #2 -> With IDL ActiveX control
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: Structure in argument #2 -> With IDL ActiveX control [message #13763 is a reply to message #13641] Sat, 28 November 1998 00:00 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Matthew J. Sheats (sheats@lanl.gov) writes:

> Definately seems to be a round about way of doing things. Funny thing
> is, I've seen similar behavior in places in IDL (not involving
> ActiveX). Like.. (and maybe this is just me being a moron), I can't do
> this:
>
> READU, Lun, Struct.X
>
> It doesn't seem to assign anything to Struct.X. What I always end up
> doing is something like this:
>
> READU, Lun, X
> Struct.X = X
>
> Pretty annoying. It's one of those things I never thought about
> reporting because I assumed it was a "feature" of some sort. One I
> could do without. Oh and ya, the structure and X and everything is
> defined prior to the READU.

This is because structure de-references are passed into
procedures and functions (such as READU) by *value* and
not by *reference*. The *ONLY* thing passed into IDL by
reference are variables (whole variables, not parts of
variables).

Here is an article on my web page with more detailed
information:

http:///www.dfanning.com/tips/read_subscripted_array.html

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Progamming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155

[Note: This follow-up was e-mailed to the cited author.]
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Finding PSD Mean Frequency
Next Topic: Varaibles higher on the stack

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

Current Time: Fri Oct 10 15:46:57 PDT 2025

Total time taken to generate the page: 1.92022 seconds