Web Connection
Wait '' timeout 5
Gravatar is a globally recognized avatar based on your email address. Wait '' timeout 5
  Michael B
  All
  Jan 11, 2023 @ 05:29pm

Rick,

Since wait is a ui function in vfp and that's a no no in com, what is the right way to have a function wait a few seconds?

Thanks!

Gravatar is a globally recognized avatar based on your email address. re: Wait '' timeout 5
  Rick Strahl
  Michael B
  Jan 11, 2023 @ 10:12pm

Wait Window actually works I believe as it's non-modal and not a dialog. If you use no prompt there's no UI...

INKEY() works, or you can use WinApi_Sleep().

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Wait '' timeout 5
  Michael B
  Rick Strahl
  Jan 12, 2023 @ 07:23am

Wait with '' actually does not work in COM which is what I was trying to say. I guess the framework looks for the word wait and errors out by design. Inkey(5) is working just fine, thanks!

© 1996-2024