?
Solved

Delay in TPW

Posted on 1998-03-16
3
Medium Priority
?
524 Views
Last Modified: 2008-02-26
How do I get a TPW program to delay for about a second?
0
Comment
Question by:McSpud
[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
 
LVL 1

Accepted Solution

by:
zircon earned 20 total points
ID: 1217399
Do you want the delay to occur from within your program?  If so, add the following line in your source code where you want the delay to occur in your program.

Delay(ms);

where ms is the length of time you want to delay your program in milliseconds.
0
 
LVL 1

Expert Comment

by:zircon
ID: 1217400
BTW, you'll need to make sure one more line of code is in your program.  If you don't have this statement in your code already, for TWP to recognize the call to Delay, you need to put the following line of code under you program header and before your global variable declarations:

uses crt;

Otherwise, your compiler will give you an unknown identifier error.

I tested this on one of my programs, and it does work.

Good luck.
0
 

Author Comment

by:McSpud
ID: 1217401
Adjusted points to 15
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Whoever said that “a picture is worth one thousand words” observed a fact that can dramatically affect your marketing success. Most people tend to learn visually, so many publishers commonly acknowledge the effectiveness of visual learning by using…
Article by: Shawn
IT teams define success as solving problems quickly. To enable ITSM modernization we have to think of adopting the tools and methods that will enable resolution of ITSM issues more quickly.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

719 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