Solved

Delay in TPW

Posted on 1998-03-16
3
505 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 10 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Suggested Solutions

Title # Comments Views Activity
Server side business logic 5 360
Disable ctrl+alt+del 7 696
Delphi XE2 - Company Business System Application, errors when running on Win 7 17 1,118
Delphi need modify hand cursor windows 4 579
Had a business requirement to store the mobile number in an environmental variable. This is just a quick article on how this was done.
This article describes a serious pitfall that can happen when deleting shapes using VBA.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

739 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