Good job Bob! =)
Main Topics
Browse All TopicsFor 200 points to put you over ... How do I get an integer from a string (i.e. I have "45" in a textbox)
:D
I think we all know that points aren't that important to you but congratulations on being our first genius!
Cheers,
Greg Young
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hey, Greg, I have a question open about serialization, and I know that you know a lot about the subject, and I would like to hear what you have to say.
http://www.experts-exchang
P.S. I'll take my points the good ol' fashion way, if you don't mind. One more question and I am home free for genius #3. These people around here are driving me crazy, though, cuz I have posted a lot of suggestions and good comments, but it is sooo quiet today, it just creeps up to just below 1000000.
Bob
Business Accounts
Answer for Membership
by: PoeticAudioPosted on 2006-07-13 at 07:24:08ID: 17099944
ooh... ooh! I know this one... um... it's something like
0, txtLen ))
String(Con vert.ToStr ing(str.To String()). ToString() .ToString( )).ToStrin g());
something like:
string str = "";
int txtLen = textBox1.Text.Length;
foreach(char c in textBox1.Text.ToCharArray(
{
str += c;
}
char[] ints = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9'};
foreach(char c in str.ToCharArray())
{
if(Array.IndexOf(ints, c) < 0)
{
MessageBox.Show("Not a valid int");
return;
}
}
//valid if it makes it this far
int i = Convert.ToInt32(Convert.To
-=)
Ah, just kidding, Congrats Bob!!!