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.
>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.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer