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

Home » Public Forums » archive » Reading * symbol out of 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
Reading * symbol out of a string [message #66421] Mon, 11 May 2009 08:35
fugu is currently offline  fugu
Messages: 5
Registered: February 2009
Junior Member
Dear all,

I have a string x

X STRING = '*280 948 80 0'

which I am trying to read into variables:

READS, x, stage, lat, lon, wind, press, format =
'(A1,I3,1x,I3,1x,I3,1x,I4)'

This returns % Type conversion error: Unable to convert given STRING
to Float.

and the problem seems to be the (ASCII decimal 42 mapped -) * symbol.

I have tried to read it into various formats (replace A by I or F for
instance), but none works.

Has anyone got an idea, why that is and how to work around it?

Many thanks!

Daniel
[Message index]
 
Read Message
Previous Topic: Dialog_Pickfile Question
Next Topic: Questions about Time-control

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

Current Time: Wed Oct 08 15:52:06 PDT 2025

Total time taken to generate the page: 0.00451 seconds