Sounds you have to enhance your code by the following logic
In reply to Re: Delete the line by Ratazong in thread Delete the line by Anonymous Monk