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.
If the first line of a memo is blank, how do I delete it?
I am using Delphi 6. Many thanks for your help.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Many thanks wildzero.
Your help is greatly appreciated.
Your help is greatly appreciated.
If memo1.lines[0] := '' then
memo1.lines.delete(0);
I think thats it.