Bigbadborris
Active member
- Joined
- Aug 21, 2013
- Messages
- 35
- Programming Experience
- Beginner
Hi
I have a text file which holds customers details. One customer per line. Each line os formated as below
GRAHAM ### ##### ############# ################ ##############
MANSFIELD ### ##### ################## ############## ########
(i have had to mask some of the data for security)
I would like to no how to remove the first 20 Characters from each line,( The first 20 characters of each line are blank spaces ) and then search the first 3 characters of the Name feild (GRA in above example) based on the characters the user enters in a textbox. I would like the program to then display all lines where the first 3 characters of the name field match the search string in a lst box (lstCust).
e.g User enters GRA, the program then displays all the lines where the first 3 letters of the name match in the lst box
I hope this makes sence
Many Thanks
I have a text file which holds customers details. One customer per line. Each line os formated as below
GRAHAM ### ##### ############# ################ ##############
MANSFIELD ### ##### ################## ############## ########
(i have had to mask some of the data for security)
I would like to no how to remove the first 20 Characters from each line,( The first 20 characters of each line are blank spaces ) and then search the first 3 characters of the Name feild (GRA in above example) based on the characters the user enters in a textbox. I would like the program to then display all lines where the first 3 characters of the name field match the search string in a lst box (lstCust).
e.g User enters GRA, the program then displays all the lines where the first 3 letters of the name match in the lst box
I hope this makes sence
Many Thanks