How do I search to edit and delete a customer on a file ?

shak

Member
Joined
Apr 10, 2011
Messages
10
Programming Experience
Beginner
Hi all, I have a project from college. The project is for a car company showing how much the customer will be required to pay back monthly on the amount of finance they take out.

I need to search to edit and delete customers

so for example I want the program to say something like " Name of the customer you'd like to delete/edit" then the response would be the name "Mark".

I'm using vb.net2005 console application
 
the data is stored in a file
That narrows it down to absolutely everything. We know that it's stored in a file. What we don't know is anything about the format of that file.
 
can I email you the code?

Just post a full and clear explanation here. That's what forums are for. If you don;t provide us with all the relevant information though, we can only guess.
 
ok sure. Basically I'm creating a project for college for a car quotes system. The company is providing the customer with a quote for the finances they'll require etc. As I enter a new customer I want them to each have a unique identifier/quote reference. So when the edit or delete menu is chosen I can just input the quote reference and get that specific customers details to edit. I also want to be able to edit certain fields like "age" for example.

I'm using a structure like <vb fixed string> ""
 
VBFixedString is meaningless here. It is only relevant when passing string to API functions that expect strings of a specific length. The fact that the data is stored in a file isn't really enough. I guess we can assume that it's a text file but we shouldn't really have to assume. A "full explanation" would include that information. Anyway, unless you're using a database, you basically have to read all the data into your app and then search through it there. You could use LINQ if you're using .NET 3.5 or later, otherwise you'd just have to use a loop.
 
Okay. I'm not really sure to be honest started the course late and the projects in for tomorrow in a bit of a loop myself !
 
Back
Top