Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Messagebox Title Message Question !
Message
From
14/02/2001 14:47:07
 
 
To
14/02/2001 07:59:53
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00475630
Message ID:
00475962
Views:
54
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform