|
-
March 31st, 2006, 02:21 AM
#1
Urgent- conversion .Please help
Hi,
I have a problem. I used to convert an object to double like this:
System.Double val = Convert.ToDouble(valeur, culture);
function of culture.
Now I have as object un array of double...
how can I make the conversion??I don't have Convert.To...?
Thanks
Daniela
******
I would love to change the world, but they won't give me the source code
-
March 31st, 2006, 04:34 AM
#2
Re: Urgent- conversion .Please help
 Originally Posted by DanielaTm
Hi,
I have a problem. I used to convert an object to double like this:
System.Double val = Convert.ToDouble(valeur, culture);
function of culture.
Now I have as object un array of double...
how can I make the conversion??I don't have Convert.To...?
Thanks
you will need to create a different array of double then with a loop transfer elements one by one in the new array ; hope this will help
A small First step is the begining of any giant leap
-
March 31st, 2006, 06:47 AM
#3
Re: Urgent- conversion .Please help
 Originally Posted by DanielaTm
Now I have as object un array of double...
Do you mean you have an object (scalar), which holds an array of doubles, or do you have an array of objects, each of which holds a double?
If it's the first case, then you could just cast it, in the second case I would create an array of doubles of equal size and loop through, converting each element individually.
-
April 2nd, 2006, 09:18 PM
#4
Re: Urgent- conversion .Please help
Array.Copy method maybe fit
-
April 3rd, 2006, 02:17 AM
#5
Re: Urgent- conversion .Please help
Yes, it was helpfull. I had to convert every element of the array.
Thanks again
Daniela
******
I would love to change the world, but they won't give me the source code
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|