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

Home » Public Forums » archive » Re: type conversion error - help needed urgent
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: type conversion error - help needed urgent [message #84465 is a reply to message #84464] Sun, 26 May 2013 21:50 Go to previous messageGo to previous message
gunvicsin11 is currently offline  gunvicsin11
Messages: 93
Registered: November 2012
Member
On Monday, May 27, 2013 12:01:50 AM UTC+5:30, David Fanning wrote:
> sid writes:
>
>
>
>> jplm10(34)
>
>
>
> IDL> varstr = 'jplm' + StrTrim(v,2) + '(' + StrTrim(dpi[0],2) + ')'
>
>
>
>> I need to use this value for further calculations but this is taken as a string and the variable couldnt be used.
>
>
>
> Humm. Kind of a strange way to write a program, but maybe you know what
>
> you are doing. :-)
>
>
>
> Cheers,
>
>
>
> David
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")

Hello sir,
But still the problem is not solved since varstr is equal to jplm10(34) which is a string , so I am not getting value of jplm10(34)

Actually,
IDL> help,jplm10(34)
<Expression> FLOAT = 6502.00

But this varstr

IDL> help,varstr
VARSTR STRING = 'jplm10(34)'

But from this I am getting jplm10(34) but it is a string so If take it as a variable then this type conversion error comes.
Please help me in this regard
thanking you
sid
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: on the background color of cgplot
Next Topic: Re: contour discontinuity

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

Current Time: Fri Oct 10 18:39:42 PDT 2025

Total time taken to generate the page: 7.59962 seconds