Link to home
Start Free TrialLog in
Avatar of José Perez
José PerezFlag for Chile

asked on

VB.Net: Convert 5 digit number to String

Hi,
I have a Textbox that contains a user number of 4 digit number, for example: 4163 (numbers are different depending on the user)

What I need to do is to create folders depending on user's number, for example, for user number 4163 the following folders should be created:

User number: 4163
User folder: C:\4000\4100\4160\4163

another example...
User number: 4824
User Folder: C:\4000\4800\4820\4824


I was trying to picture how this can work logically, to see if I could resolve it, but I couldn't:

string_1=4000
string_2=4100
string_3=4160
string_4=4163

Can somebody help me to figure this out?
ASKER CERTIFIED SOLUTION
Avatar of Joe Fulginiti
Joe Fulginiti

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The Title says 5 digits but the description talks about 4 digits.

Do you want to hard-code the number of digits?...or use what ever length was entered by the user?
Avatar of José Perez

ASKER

It worked perfect!