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
Re: Urgent- conversion .Please help
Quote:
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 :wave:
Re: Urgent- conversion .Please help
Quote:
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.
Re: Urgent- conversion .Please help
Array.Copy method maybe fit
Re: Urgent- conversion .Please help
Yes, it was helpfull. I had to convert every element of the array.
Thanks again