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

Home » Public Forums » archive » Re: Can I use array elements of a pointer like a regular array?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Can I use array elements of a pointer like a regular array? [message #63827] Thu, 20 November 2008 15:14
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
lalit.jalota@yahoo.com schrieb:
> On Nov 20, 2:57 pm, lalit.jal...@yahoo.com wrote:
>> OK Gurus,
>> why does this happen?
>>
>> IDL> print, n_elements( *(*pstate).ptr_counts )
>> 120
>> IDL> print, *(*pstate).ptr_counts[1]
>> Subscript range values of the form low:high must be >= 0, < size, with
>> low <= high: <No name>.
>> Execution halted at: MS_GENERATESPECTRUM 489 C:\ISI\_Rad-Img\code
>> \ms_generatespectrum.pro
>> MS_GENERATESPECTRUMBUTTON 54 C:\ISI\_Rad-Img
>> \code\mxfsim_eventcb.pro
>> MXFSIM_BASE_EVENT 25 C:\ISI\_Rad-Img\code
>> \MXFSim.pro
>> WIDGET_PROCESS_EVENTS
>> $MAIN$
>>
>> ????
>
>
> SORRY - my mistake - I know what's wrong now. Can I delete this
> question???
Much better is you describe the solution, so others who run into this
failure they can read also your answer.

cheers
Reimar
Re: Can I use array elements of a pointer like a regular array? [message #63838 is a reply to message #63827] Thu, 20 November 2008 12:09 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
lalit.jalota@yahoo.com writes:

> SORRY - my mistake - I know what's wrong now. Can I delete this
> question???

Better to print it out and tape it next to your computer
as a reminder to practice humility in all things. :-)

Cheers,

David
--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Can I use array elements of a pointer like a regular array? [message #63839 is a reply to message #63838] Thu, 20 November 2008 12:04 Go to previous message
lalit.jalota is currently offline  lalit.jalota
Messages: 2
Registered: November 2008
Junior Member
On Nov 20, 2:57 pm, lalit.jal...@yahoo.com wrote:
> OK Gurus,
> why does this happen?
>
> IDL> print, n_elements( *(*pstate).ptr_counts )
>          120
> IDL> print, *(*pstate).ptr_counts[1]
> Subscript range values of the form low:high must be >= 0, < size, with
> low <= high: <No name>.
> Execution halted at: MS_GENERATESPECTRUM  489 C:\ISI\_Rad-Img\code
> \ms_generatespectrum.pro
>                      MS_GENERATESPECTRUMBUTTON   54 C:\ISI\_Rad-Img
> \code\mxfsim_eventcb.pro
>                      MXFSIM_BASE_EVENT   25 C:\ISI\_Rad-Img\code
> \MXFSim.pro
>                      WIDGET_PROCESS_EVENTS
>                      $MAIN$
>
> ????


SORRY - my mistake - I know what's wrong now. Can I delete this
question???
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Why this loop does not work?
Next Topic: IDL Virtual Machine Woes

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

Current Time: Sat Oct 11 09:10:08 PDT 2025

Total time taken to generate the page: 1.35863 seconds