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.


Re: Split string into digits 80 80

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

Re: Split string into digits 80 80

This may be helpful to you.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.