473,385 Members | 1,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

convert string[] to int[]

Is there any way (other then using a loop) to convert a string array to an
int array? Any help would be great. thanks

:// Jake
Nov 22 '05 #1
4 3499
Jay,
Is there any way (other then using a loop) to convert a string array to an
int array? Any help would be great. thanks

No, however how much work is that, in addition what do you think that when
there was a method build for you, which would look the same as yours, what
was than done behind the scene?

It does not help, however before you seach to long.

Cor
Nov 22 '05 #2
Jay,
Is there any way (other then using a loop) to convert a string array to an
int array? Any help would be great. thanks

No, however how much work is that, in addition what do you think that when
there was a method build for you, which would look the same as yours, what
was than done behind the scene?

It does not help, however before you seach to long.

Cor
Nov 22 '05 #3
I didn't think there was. I just thought it would be cool if you could do
something like:
string[] x = {"0", "3", "32", "98", "87"};
int[] y = int[].Parse(x);

**shrug** guess I'll just do a loop.

thanks

"Cor Ligthert" wrote:
Jay,
Is there any way (other then using a loop) to convert a string array to an
int array? Any help would be great. thanks

No, however how much work is that, in addition what do you think that when
there was a method build for you, which would look the same as yours, what
was than done behind the scene?

It does not help, however before you seach to long.

Cor

Nov 22 '05 #4
I didn't think there was. I just thought it would be cool if you could do
something like:
string[] x = {"0", "3", "32", "98", "87"};
int[] y = int[].Parse(x);

**shrug** guess I'll just do a loop.

thanks

"Cor Ligthert" wrote:
Jay,
Is there any way (other then using a loop) to convert a string array to an
int array? Any help would be great. thanks

No, however how much work is that, in addition what do you think that when
there was a method build for you, which would look the same as yours, what
was than done behind the scene?

It does not help, however before you seach to long.

Cor

Nov 22 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: aevans1108 | last post by:
expanding this message to microsoft.public.dotnet.xml Greetings Please direct me to the right group if this is an inappropriate place to post this question. Thanks. I want to format a...
3
by: Convert TextBox.Text to Int32 Problem | last post by:
Need a little help here. I saw some related posts, so here goes... I have some textboxes which are designed for the user to enter a integer value. In "old school C" we just used the atoi function...
2
by: paul gao via .NET 247 | last post by:
hi all. In my program I need to convert a double number to stringrepresentation in fraction format and vise versa. For example,convert 0.75 to string "3/4" and convert string "1/2" to 0.5.The class...
6
by: Allan Ebdrup | last post by:
How do I easily convert a int to a string? Kind Regards, Allan Ebdrup
2
by: Learner | last post by:
Hello, I am trying to store the data entered in a webform in the database. I have few Int and one SmallDateTime filed in my table in SQL Server 2005 database. I have made a storedproc to store the...
6
by: compboy | last post by:
Can anyone help me about this. I have been trying all the ways I knew and I could find but just didnt work. I have tried: using itoa but it says that it doesnt have that function. and...
6
by: Ken Fine | last post by:
This is a basic question. What is the difference between casting and using the Convert.ToXXX methods, from the standpoint of the compiler, in terms of performance, and in other ways? e.g. ...
4
by: tshad | last post by:
I am trying to convert a string character to an int where the string is all numbers. I tried: int test; string stemp = "5"; test = Convert.ToInt32(stemp); But test is equal to 53.
9
by: Marco Nef | last post by:
Hi there I'm looking for a template class that converts the template argument to a string, so something like the following should work: Convert<float>::Get() == "float"; Convert<3>::Get() ==...
0
Debadatta Mishra
by: Debadatta Mishra | last post by:
Introduction In this article I will provide you an approach to manipulate an image file. This article gives you an insight into some tricks in java so that you can conceal sensitive information...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.