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

Home » Public Forums » archive » Null terminated strings
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: Null terminated strings [message #28738 is a reply to message #28677] Wed, 09 January 2002 06:19 Go to previous messageGo to previous message
James Kuyper is currently offline  James Kuyper
Messages: 425
Registered: March 2000
Senior Member
Malcolm Walters wrote:
...

> Firstly if you replace each 0B with a 10B using
> btest[where(btest eq 0B)]=10B
> you can now print btest then you get the line breaks (This can be used in
> message boxes etc.)
> Or if you want to go one further then split them using
> stest = strsplit(string(btest),string(10B),/extract)
> print, stest
> This is a jest
> help,stest
> <Expression> STRING = Array[4]
> I hope this is of some help.
> Malcolm Walters

Thanks! That sounds like exactly what I was looking for. I'm still
enough of a newbie to have been unaware of the existence of strsplit().
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: WIDGET REALIZATION BUG in 5.5 ?
Next Topic: Re: Spherical Contour Plotting

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

Current Time: Wed Oct 08 19:02:30 PDT 2025

Total time taken to generate the page: 0.00639 seconds