Link to home
Start Free TrialLog in
Avatar of rincewind666
rincewind666

asked on

Delete first line of memo if it is blank (250 points)?

This may be simple but it's been a hard day!

If the first line of a memo is blank, how do I delete it?

I am using Delphi 6. Many thanks for your help.
Avatar of wildzero
wildzero

If memo1.lines.count > 0 then
  If memo1.lines[0] := '' then
    memo1.lines.delete(0);

I think thats it.
ASKER CERTIFIED SOLUTION
Avatar of wildzero
wildzero

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rincewind666

ASKER

Many thanks wildzero.

Your help is greatly appreciated.