Re: Removing CRLF from a String [message #11344] |
Mon, 23 March 1998 00:00  |
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
|
|
|