Friday, April 9, 2010

VB Scripting Basics - Msgbox Function

Previous12345678910Next

Msgbox Function in VB Scripting is a very basic function and Let’s start with a simple VB Script to display a message for the user using the Msgbox Function and try to understand how it works.


Msgbox

Step 1: Open your note pad and type in this statement.


Msgbox “This is First VB Script”


Step 2: Click File > Save As and in the Save window


1. Enter the fine name as sample.vbs
2. Choose “All Files” option for the Save as Type
3. Click Save button

Step 3: On the desktop or the location you have given you will see a file with this icon

Step 4: Double clicking on this file your message box will be displayed with the predefined message you gave “This is First VB Script”

Let’s understand what Msgbox function does

Msgbox is used for displaying the output. It is an inbuilt VB function used to output (display) a value to the user. This value can be a constant or a variable. Msgbox contains a OK button. Until the user clicks the OK button the execution will not move on to the next line.

Previous12345678910Next

2 comments:

Suba said...

Your content on testing tool is awesome. I gained many info on selenium testing tool. For Software course click below links
Salesforce Training in Chennai
Big Data Training in Chennai
Android Training in Chennai
Selenium Training in Chennai
JAVA Training in Chennai
German Classes in chennai
web designing course in chennai
web designing course in Velachery

anusha said...



MEAN Stack Training in Chennai MEAN Stack Training in Chennai with real time projects. We are Best MEAN Stack Training Institute in Chennai. Our Mean Stack courses are taught by Industrial Experts which would help you to learn MEAN Stack development from the scratch.

Post a Comment