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

Home » Public Forums » archive » Re: String composition
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: String composition [message #38127] Mon, 23 February 2004 06:21 Go to previous message
Norbert Hahn is currently offline  Norbert Hahn
Messages: 46
Registered: May 2003
Member
Edd Edmondson <eddedmondson@hotmail.com> wrote:

> Antonio Santiago <d6522117@est.fib.upc.es> wrote:
>> Hi, sorry about this poor question, but is my first problem with IDL.
>
>> How can i mount a string with a return carriadge. That is like C:
>
>> string = 'hello \n'+ 'bye'
>
>> How can i put the '\n' character?
>
> STRING(10B) (10 being the ascii code for a new line)
>
> eg, mystring='hello'+STRING(10B)+'bye'

That's ok for Unix like operating systems. MS Windows requires

mystring='hello'+STRING([13B,10B])+'bye'

while the Macintosh needs mystring='hello'+STRING(13B)+'bye'
if I'm not mistaken.

You may use the variable !version.os to find out which OS your
program runs on.

Norbert
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: x-axis as long as y-axis ?
Next Topic: Re: Mark directory for exclusion from !PATH

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

Current Time: Wed Oct 08 18:07:53 PDT 2025

Total time taken to generate the page: 0.00166 seconds