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

Home » Public Forums » archive » Re: WHERE and pointers
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: WHERE and pointers [message #33531 is a reply to message #33526] Thu, 09 January 2003 13:53 Go to previous messageGo to previous message
sheryn.gillin is currently offline  sheryn.gillin
Messages: 6
Registered: January 2003
Junior Member
> Presumably the return value is a pointer to an array of
> values. The syntax would then be something like this:
>
> indices = Where( *ptr GT 5) ; or whatever
>
> Is this what you are doing?

I don't have my full code here at work, but it basically looks like:

dicomdir = OBJ_NEW('IDLffDICOM', 'D:\dicomdir')
PatientName = dicomdir->GetValue('0010'x, '0010'x)

So PatientName is an array of 'PtrHeapVariables', which I want to
compare with a user entered parameter to determine where to start
reading the images/filenames.

What I tried was various combinations of:
StartOffset = WHERE(*PatientName EQ 'blah');
StartOffset = WHERE((*PatientName) EQ 'blah');
StartOffset = WHERE(*PatientName[*] EQ 'blah'); etc.
however, I only get error messages, so end up having to use a FOR loop
to find the starting location.

Cheers
Sheryn
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Figuring out which functions and procedures get called
Next Topic: problem using strsplit

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

Current Time: Sat Oct 11 02:24:30 PDT 2025

Total time taken to generate the page: 0.95991 seconds