×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Showing Time with Wait Window message

Showing Time with Wait Window message

Showing Time with Wait Window message

(OP)
WAIT WINDOW 'Trying to Lock [ Computer No ] Table .... ' NOWAIT

Want to Show Time from 1 to 30 Seconds with the above message e.g.

WAIT WINDOW 'Trying to Lock [ Computer No ] Table .... ' + '1' + 'Seconds ' NOWAIT
WAIT WINDOW 'Trying to Lock [ Computer No ] Table .... ' + '2' + 'Seconds ' NOWAIT
WAIT WINDOW 'Trying to Lock [ Computer No ] Table .... ' + '3' + 'Seconds ' NOWAIT
WAIT WINDOW 'Trying to Lock [ Computer No ] Table .... ' + '4' + 'Seconds ' NOWAIT
.
.
.
WAIT WINDOW 'Trying to Lock [ Computer No ] Table .... ' + '29' + 'Seconds ' NOWAIT
WAIT WINDOW 'Trying to Lock [ Computer No ] Table .... ' + '30' + 'Seconds ' NOWAIT

RE: Showing Time with Wait Window message

This doesn't directly answer your question, but are you aware that if you have SET STATUS ON, then VFP will automatically display the lock status while the lock attempts are in progress?

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads

RE: Showing Time with Wait Window message

You can't run code, as this lock waiting time happens while executing a lock and isn't letting you do other things like displaying messages while waiting for the lock.

When you do a loop yourself, you can make use of WAIT WINDOW 'X' NOWAIT, but if a single command takes 30 seconds until a timeout that's it, you don't have code running intermittent, perhaps even not a timer event will fire during things lilke long running queries or updates.

Bye, Olaf.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close