?
Solved

How to detect a key pression inside a while loop

Posted on 1998-11-26
1
Medium Priority
?
144 Views
Last Modified: 2010-04-04
Hi all..

I have a menu option that reads the 64K memory of a circuit connected to the serial port. When that option is chosen, a function that reads the memory is called. That function has a while loop that reads 4096 memory blocks at a time until it has read 64 K. The problem is that if I want to cancel the read operation, for example, by pressing F7, the program doesn't respond to keypresses. Is there in Delphi 3.0 something similar to Pascal ReadKey and Keypressed? or do you have any other suggestion? onKeyPress event of the form containing the menu doesn't work until the memory was completely read, that is, when the readmemory function finishes.

Thanks a lot for help in advance,
Jaime
0
Comment
Question by:skel
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 12

Accepted Solution

by:
rwilson032697 earned 200 total points
ID: 1348022
In the loop reading the memoery do this:

Application.ProcessMessages.

Cheers,

Raymond.
0

Featured Post

Enroll in September's Course of the Month

This month’s featured course covers 16 hours of training in installation, management, and deployment of VMware vSphere virtualization environments. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

718 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question