General information
Title:
101 VFP Things, Part 5
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only