Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9091809
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T22:41:53+00:00 2026-06-16T22:41:53+00:00

i searched google but can’t seem to find a working solution. the situation is

  • 0

i searched google but can’t seem to find a working solution.

the situation is unique. i need to “add” lines with a comment at various times. whenever i press the F9 key, a line number will dispaly followed by a colon “:” char and then i enter some comments at the line number and cursor position.

the running output should look like this:

001: startup time
002: watched tv
003: |

where “|” is the last cursor position at runtime, waiting for me to enter some text.

but instead, when i run the program and press the F9 key, i get this:

001: 
002: 
003: 
|

where “|” is the last cursor position at runtime, waiting for me to enter some text.

how can remove that (last) blank line in a memo?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T22:41:54+00:00Added an answer on June 16, 2026 at 10:41 pm

    Add() inserts a line break after the inserted text. If you do not want the line break, then use the SelText property instead, eg;

    Memo1.SelStart := Memo1.GetTextLen;
    Memo1.SelLength := 0;
    Memo1.SelText := '003: ';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've already searched google and stackoverflow but I can't find a solution. I'm trying
Searched a lot for this on StackOverflow and Google but can't seem to find
I've searched Google and this website many times, but can not find a solution
So I searched google and stackoverflow for a solution but I can not find
I've looked around Apple's site, and searched Google, but I can't find anything. I
I've searched Google for hours, but I can't find the answer anywhere. I have
I have searched google up and down but I can not find nearly any
I've asked Google and searched through the NServiceBus website and forums, but I can't
I have already googled and searched stackoverflow but I can find nothing related to
I've searched google and SO for a solution to this problem but have not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.