Click here to Skip to main content
15,921,793 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
my project is of Library management system.. i want to give book limit to the memeber according to their memebership cards (e.g silver, golden and bronze)... how will i achieve this using if and else coding....
Posted
Comments
[no name] 24-Jul-13 8:21am    
For C#: http://msdn.microsoft.com/en-us/library/5011f09h(v=VS.71).aspx
For VB.NET: http://msdn.microsoft.com/en-us/library/bb513985.aspx

1 solution

If you can't work out how to do something like this in your application, try it manually first.
Use a sheet of paper and a pencil, and go through the process of borrowing a book, making notes at every stage in what you are doing and what you are checking. When you have run through a number of times, you should have a good idea what information you will need. Then you can start of convert the info requirement and the algorithm to computer specific format: do you need a count of the number of books they have out, for example? Probably not: you can retrieve that with a query against the "books table", looking at the "who has borrowed this" column.

It's all pretty simple, but the exact mechanism will vary depending on how you have organised your data: I would organise it one way, you may already have organised it another.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900