Array with mixing data types [message #52048] |
Thu, 04 January 2007 18:17  |
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  |
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  |
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
|
|
|