954,535 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Split string into digits

Hi. I am new to VB (and coding in general) and I'm wanting to make a check digit generator. To do this I need to take the a user text input and split it into individual digits so that I can then calculate the check digit. I'm just not sure how to do it.

I have some validation in place so the user can only input numeric digits and they are limited to entering only 7 digits.

Any help with this would be greatly appreciated.

Cheers.

Terminator_Null
Newbie Poster
6 posts since Jun 2010
Reputation Points: 10
Solved Threads: 0
 

If there is any special character between the each digit in the string entered you can use String.Split("") and if nothing is there only a number then you can use String.Split(). Hope this helps to you.

Saikalyankumar
Junior Poster in Training
91 posts since Mar 2011
Reputation Points: 8
Solved Threads: 23
 

This may be helpful to you.

debasisdas
Posting Genius
6,872 posts since Feb 2007
Reputation Points: 666
Solved Threads: 434
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: