Solved

suspend a output

Posted on 1997-05-21
3
237 Views
Last Modified: 2010-04-16
Is it possible to suspend a output to screen just using
following:

var ch : char;

begin
write('press any key to continue...');
read(ch);
end.

if not, what is the correct way? thx
0
Comment
Question by:ping072497
[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
  • 2
3 Comments
 

Accepted Solution

by:
PFranz earned 50 total points
ID: 1215340
I usually use

var ch:char;

Begin
 write('press any key');
 ch := readkey;
end.
0
 

Author Comment

by:ping072497
ID: 1215341
I tried the above program. It seems doesn't work to me.
I couldn't compile it. I'm using Tubo Pascal 7.0. Is readkey
a function?


0
 

Expert Comment

by:PFranz
ID: 1215342
It is a function from the CRT Unit.
You can use this function also to read a key like ESC (ch=CHR(27)) or one of the F-keys.
 
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article is written by John Gates, CISSP. Gates, the SNUG President-Elect, currently holds the position of Manager of Information Systems at Lake Park High School in Roselle, Illinois.
This article outlines the struggles that Macs encounter in Windows-dominated workplace environments – and what Mac users can do to improve their network connectivity and remain productive.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

626 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