Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
101 VFP Things, Part 5
Message
From
07/12/2000 10:49:01
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
101 VFP Things, Part 5
Miscellaneous
Thread ID:
00450388
Message ID:
00450388
Views:
65
As you probably know, MEssageBox() now includes a timeout parameter to display the messagebox, and if a user doesn't make a selectiong the amount of time specified, it closes and returns a -1.

A couple things though. The parameters are seemingly freely swappable. FOr example:

?MESSAGEBOX('message', 16, 'title', 16)
?MESSAGEBOX('message', 'title', 16, 16)


Are the exact same thing, with the final 16 being the time out. You can also specify any type for the Message. In the following examples (all working), 100 is the timeout, 16 is the stop sign, and the number 1 is the message.

?MESSAGEBOX(1)
?MESSAGEBOX(1, 16)
?MESSAGEBOX(1, 16, 100)
?MESSAGEBOX(1, 16, 'title', 100)
?MESSAGEBOX(1, 'title', 16, 100)
?MESSAGEBOX(1, 16, 100, 'title')


Another oddity with the MessageBox() in VFP7 is that it doesn't work on Windows95. Well, it does, unless you use the timeout command. In 95 and with the Timeout, the MessageBox appears behind every open window. The system requirements for tech preview actually say Windows 98, but Ive been running it on 95 for a while, and have found few problems.
Reply
Map
View

Click here to load this message in the networking platform