Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WShell.Popup Timeout Bug?

Status
Not open for further replies.

baltman

Technical User
Mar 5, 2002
1,578
US
Using VFP9 on XP Pro I do not get the expected behavior of a 1 second time out. I get an hourglass mouse cursor until I button click instead. This a VFP bug or is there something strange with my setup?

Thanks,
Brian

Code:
WShell = CREATEOBJECT("WScript.Shell")
WShell.Popup("My Timeout isn't respected!", 1, "Title", 1)

In VB Script (save as *.vbs as dbl click) it is:
Code:
set WShell = CREATEOBJECT("WScript.Shell")
WShell.Popup "My Timeout is respected!", 1, "Title", 1
 

Interesting. I've had this method in my course notes since 1999, so it must have worked at one time. But I'm now seeing the same behaviour that Brian reported, in VFP 7.0 to 9.0.

If anything's changed, it's more likely to be at the OS level than in VFP. After all, VFP is simply calling a method of a COM server.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top