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

Home » Public Forums » archive » Re: the type parser
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: the type parser [message #44074 is a reply to message #44073] Sun, 15 May 2005 05:26 Go to previous messageGo to previous message
Chris Lee is currently offline  Chris Lee
Messages: 101
Registered: August 2003
Senior Member
In article <d674k0$3dl$1@zam602.zam.kfa-juelich.de>, "Reimar Bauer"
<R.Bauer@fz-juelich.de> wrote:


> Dear all
> I am searching for the function which tells idl what kind of type a
> variable gets by it's assignment. e.g.
> ....
> cheers
> Reimar

Hi Reimar ,

I'm not sure I understand, do you want the type of a constant value? (e.g
1, 2.3, 50000 ). Wouldn't SIZE or SIZE(/type) do this for you?

size(1, /type) -> 2 ;INT
size(50000, /type) -> 3 ;LONG
size(1.0, /type) -> 4 ;FLOAT
compile_opt idl2
size(1,/type) -> 3 ;LONG

Chris.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: launching many widgets at the same time
Next Topic: Locating IDL source code file

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

Current Time: Wed Oct 08 20:05:37 PDT 2025

Total time taken to generate the page: 0.00456 seconds