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

Home » Public Forums » archive » Re: Removing CRLF from a String
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: Removing CRLF from a String [message #11344] Mon, 23 March 1998 00:00 Go to previous message
wmc is currently offline  wmc
Messages: 117
Registered: February 1995
Senior Member
In article A6AD4CD5@fl.ensco.com, Jeff <jeffe@fl.ensco.com> writes:
> IDL was outputting the following message to me:
>
> % XMANAGER: Caught unexpected error from client application. Message
> follows...
> % MESSAGE: Expression must be a scalar in this context: <STRING
> Array[1]>.
>
> After tracking down what it really meant, I found that the fileName
> I was passing to the READ_ASCII routine had a CR at the end of it.

Hmmm... this might be your problem, but I humbly suggest that the actual problem
is that you are passing a string array (of length 1, true, but nonetheless an
array) to a routine that expects a scalar. Try read_ascii(your_string(0)).

> Content-Type: application/x-unknown-content-type-IDLprogramFile; name="testIt.pro"
> Content-Transfer-Encoding: base64
> Content-Disposition: inline; filename="testIt.pro"
>
> UHJvIHRlc3RJdF9FdmVudHMsIGV2ZW50DQoNCg0KZXZlbnROYW1lID0gVGFn X05hbWVzKGV2
An interesting program, no doubt, but incomprehensible to my poor eyes. Perhaps
next time you might send it as simple text rather than encoded?

- William

---
William M Connolley | wmc@bas.ac.uk | http://www.nbs.ac.uk/public/icd/wmc/
Climate Modeller, British Antarctic Survey | Disclaimer: I speak for myself
[Message index]
 
Read Message
Read Message
Previous Topic: bug in program going from pc to sun
Next Topic: Re: another call_external newbie

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

Current Time: Fri Oct 10 20:06:25 PDT 2025

Total time taken to generate the page: 0.32302 seconds