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

Home » Public Forums » archive » Array with mixing data types
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Array with mixing data types [message #52048] Thu, 04 January 2007 18:17 Go to next message
Julio[1] is currently offline  Julio[1]
Messages: 52
Registered: May 2005
Member
Hi,

I have a simple question. I'm using the WRITE_SYLK function to export
an array. The array was built using STRARR function, but I put some
float numbers inside it.

When I open the *.slk file the float numbers are shown as strings and I
need to use an excel command to convert into numbers.

How can I do to make an array with different data types?

Cheers,
Julio
Re: Array with mixing data types [message #52126 is a reply to message #52048] Sat, 06 January 2007 04:28 Go to previous message
Julio[1] is currently offline  Julio[1]
Messages: 52
Registered: May 2005
Member
Hi Gianguido,

I'm not familiar with structures, but I see I there isn't another way
to make that. So, here I go to IDL's help guide.

Thanks for all the comments,
Julio

Gianguido Cianci escreveu:

> I have never done anything like this in IDL before myself, but have in
> other languages so I'll give it a shot:
>
> how about making/writing an array of structures or objects? then each
> structure could have a string variable, and a float variable...
>
> what do you think?
>
> Gianguido
>
> Julio wrote:
>> Hi,
>>
>> I have a simple question. I'm using the WRITE_SYLK function to export
>> an array. The array was built using STRARR function, but I put some
>> float numbers inside it.
>>
>> When I open the *.slk file the float numbers are shown as strings and I
>> need to use an excel command to convert into numbers.
>>
>> How can I do to make an array with different data types?
>>
>> Cheers,
>> Julio
Re: Array with mixing data types [message #52138 is a reply to message #52048] Fri, 05 January 2007 09:07 Go to previous message
cgguido is currently offline  cgguido
Messages: 195
Registered: August 2005
Senior Member
I have never done anything like this in IDL before myself, but have in
other languages so I'll give it a shot:

how about making/writing an array of structures or objects? then each
structure could have a string variable, and a float variable...

what do you think?

Gianguido

Julio wrote:
> Hi,
>
> I have a simple question. I'm using the WRITE_SYLK function to export
> an array. The array was built using STRARR function, but I put some
> float numbers inside it.
>
> When I open the *.slk file the float numbers are shown as strings and I
> need to use an excel command to convert into numbers.
>
> How can I do to make an array with different data types?
>
> Cheers,
> Julio
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: SPAWN Problems under Windows
Next Topic: IDL -> X-terminal -> Windows using Xwin32, "backing store"?

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

Current Time: Sat Oct 11 04:00:14 PDT 2025

Total time taken to generate the page: 0.16208 seconds