Sign in to follow this  
Followers 0

[vb]msgbox Function

1 post in this topic

As you might know, theres a code function called Msgbox which is for a Message Box.

I'll explain what i know about it and its features and use.

Below is what the function is like with room to customize it as you like;

MsgBox(prompt[, buttons][, title][, helpfile, context])

Prompt String expression displayed as the message in the dialog box. The maximum length of prompt is approximately 1024 characters, depending on the width of the characters used. If prompt consists of more than one line, you can separate the lines using a carriage return character (Chr(13)), a linefeed character (Chr(10)), or carriage return–linefeed character combination (Chr(13) & Chr(10)) between each line.

Buttons This has multiply options. You can make it simply show Exclaimation, Question Mark, Critical or Information sign/image appear.

Also you can define it to show certain buttons like, Ok, Ok and Cancel, Yes and No, Yes/ No and cancel and many more.

Title String expression displayed in the title bar of the dialog box. If you omit title, the application name is placed in the title bar.

Help File String expression that identifies the Help file to use to provide Help for the dialog box. If helpfile is provided, context must also be provided.

Context Numeric expression that identifies the Help context number assigned by the Help author to the appropriate Help topic. If context is provided, helpfile must also be provided

Hope this can help a buddin' programmer :)


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.