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

Home » Public Forums » archive » Procedure BYTEORDER
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
Procedure BYTEORDER [message #10477] Sat, 29 November 1997 00:00
Klaus Scipal is currently offline  Klaus Scipal
Messages: 45
Registered: November 1997
Member
Hi

I have a problem with the procedure BYTEORDER in pvwave. It does not accept
strings.

Is there a way to solve this in an short and easy way

klaus

kscipal@fbgeo1.tuwien.ac.at
Re: Procedure BYTEORDER [message #10479 is a reply to message #10477] Fri, 28 November 1997 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Klaus Scipal (kscipal@fbgeo1.tuwien.ac.at) writes:

> I have a problem with the procedure BYTEORDER in pvwave.
> It does not accept strings.
>
> Is there a way to solve this in an short and easy way

Yes. And I am not trying to be a wise guy here, but don't
pass BYTEORDER strings.

What do you imagine would be the proper thing to do with
a string? What would it mean to swap the byte order of
a string, which is, in essence, a sequence of bytes? You
certainly wouldn't want to *reverse* the string, unless you
planned to read the string in a mirror.

If you look at a routine like SWAP_ENDIAN in IDL, which
*does* accept strings as arguments, you will see that
it simply returns the strings it receives as arguments
without changing a thing. This is exactly as it should
be.

Cheers,

David

-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: linknload problem in PV-Wave 6.10 on Win 95 / IBM-PC
Next Topic: Newbie seeks help drawing multiple surface volumes

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

Current Time: Fri Oct 10 14:04:56 PDT 2025

Total time taken to generate the page: 1.11797 seconds