Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Delay in TPW

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

In a use case, a user needs to close an opened report by simply pressing the Escape (Esc) key. This can be done by adding macro code in Report_KeyPress or Report_KeyDown event.
Following on from our article on "The Murky World of Consent and opt in", we thought we would issue some helpful guidance, not only on consent itself but knowing what information you are capturing, what you are doing with this data and how you can p…
Integration Management Part 2
Screencast - Getting to Know the Pipeline
Suggested Courses

773 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