Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Messagebox() location
Message
From
24/01/2014 05:23:25
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
23/01/2014 13:06:39
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01592337
Message ID:
01592371
Views:
108
>It returns a 6 because it's written in C and that's how C programmer's think. Return a numeric status value as the result. If you want to return data, pass in a pointer and it will magically update.

Which is why I say it's obsolete. The messagebox is a piece of API, and it's supposed to perform a rather simple function. It can be used, or has wrapper functions for, in dozens of languages. All the millions of folks who call it from their languages are forced to learn, or keep documentation for, those magical numbers, because whoever wrote it was a C++ coder, and that's how things were done in the eighties (when, I guess, messagebox 1.0 was written).

>>I would advise against duplicating it. It's obsolete, limited, riddled with unintuitive numbers (why is, of all things, 6 a "yes"?) and has a fixed number of button combinations. When I see "if you want to do A, press yes, if you want to do B, press no, if C then press cancel", I suspect the rest of the app is just as sloppy.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform