We want to compress the student's details by checking the 5-digit no ( 00001,00003 and 00004) if it is the same on the next pages then no need to write the (start record) again neither ( end record) . and if it is different then only we have to write ( End record ) after this it will check other pages and so on...
Like: the 00001 has all records ( name, mob no. ) then 00002 will came, and so on...
we want to write a single line ( start record ) before the 00001 details & after the end of all 00001 records ( end record )
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
Quote:
PLEASE let me know the code
This is a HELP forum, not a WRITE-THE-CODE-FOR-YOU forum. If you want code, be prepared to pay someone for it (the usual going rate is about 1000 US dollars -- or euros -- per day or part of a day for coding).
You must update the logic to remove excessive blank lines at the end of each section. However, show something you have attempted yourself before asking again.
The ability to understand, and to develop the LOGIC (or the ALGORITHM) of the assigned task - is the major responsibility of any software developer. (Not familiarity with any programming language, or tool, as many mistakenly assume).
If one is not able to understand, at least in general, the algorithm of his assigned task, then - pardon my French - that person must think about changing his job...
It is exactly the same situation, as if you called in a plumber to fix your bathroom leakage, and the plumber started from asking you: "Please, help me with explanation: how do I need to fix it?"
Another example - you've called a taxi to go to the airport, and the taxi driver asked you: "Please, help me with driving the car, and also explain me the traffic rules" ...