Kengwen,
You could use a wrapper method for this. The parameters passed to the wrapper would be the message & the dialog box type parameters. The wrapper would then call messagebox with those two parameters, plus the title parameter. It could pull the title parameter from a property of your application object or _screen.caption. i.e.,
-- Call the wrapper
nButtonPushed = oApp.MyMsgBox('this is a test message', 16)
-- The wrapper method
LPARAMETERS cMsg, nBoxType
LOCAL rv
STORE -1 TO rv
<parameter testing here>
rv = MESSAGEBOX(cMsg, nBoxType, _screen.caption)
RETURN rv
Tom
>Hi,
> I want to know is that anyway to make the messagebox title to be set one time, and no need to set every time when fire the messagebox ?
> The default messagebox title message for Visual FoxPro is "Microsoft Visual FoxPro", and is that i can change it to be my project name ? that is seems like Visual Basic can be set it to the project name.
>thanks.
>
>kengwen