José Perez
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?
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
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
It worked perfect!
Do you want to hard-code the number of digits?...or use what ever length was entered by the user?