Você está na página 1de 6

VBScript Procedures

HOME VBScript Procedures


VBScript Tutorial ASP.NET
VB HOME Shopping Cart
VB Introduction WEB HOSTING
VB How to $15 Domain Name
VB Where to Registration
Examples
VB Variables Save $20 / year!
VB Procedures
Sub procedure UK Domain Names
VB Conditional
The sub procedure does not return a value. Web Hosting
VB Looping
Merkaweb Dominios
Examples Function procedure Buy UK Domain Names
VB Examples The function procedure is used if you want to return a Register Domain Names
value.
References Website Hosting
VB Functions Domain Hosting
VB Keywords Web Hosting

VBScript Procedures Cheap Domain Names UK


Domain Names UK
We have two kinds of procedures: The Sub procedure Quality Web Hosting
and the Function procedure. Webmail & POP3 Email
Web Hosting UK
A Sub procedure: Dedicated Servers UK
Domain Names UK
is a series of statements, enclosed by the Sub Business Web Hosting
and End Sub statements Free Web Hosting
can perform actions, but does not return a
Cheap Web Hosting
value
can take arguments that are passed to it by a Web Hosting Reseller
calling procedure Website Design UK
without arguments, must include an empty set
of parentheses () Reseller Hosting
HTML & Flash
Sub mysub() Download HTML Editor
some statements Flash Web Builder
End Sub Flash Templates
HOTELS
or

Sub mysub(argument1,argument2)
some statements
End Sub

A Function procedure:

http://www.w3schools.com/vbscript/vbscript_procedures.asp (1 of 6)4/15/2004 12:25:59 AM


VBScript Procedures

Amsterdam Hotels
is a series of statements, enclosed by the Boston Hotels
Function and End Function statements Chicago Hotels
can perform actions and can return a value London Hotels
can take arguments that are passed to it by a Los Angeles Hotels
calling procedure Miami Hotels
without arguments, must include an empty set
New York Hotels
of parentheses ()
returns a value by assigning a value to its New Orleans Hotels
name Paris Hotels
Rome Hotels
Hotel Reservations
Function myfunction()
some statements Discount Hotels
myfunction=some value Hotel Rooms
End Function Web Building
Website Templates
or Website Builder
Flash Templates
Web Templates
Function myfunction(argument1,argument2)
some statements Shopping
myfunction=some value Discount Apparel
End Function Online Coupons
Cooking tools
Men & women clothing
Office supply
Call a Sub or Function Procedure Home Finance
Shopping UK
When you call a Function in your code, you do like UK Wholesalers
this:
Mobile Phones
Direct TV
name = findname()
Plasma TV
Prepaid Phones
Here you call a Function called "findname", the 123 Fast Loans
Function returns a value that will be stored in the Software
variable "name". Meta Search Engine
Your Own Web Site?
Or, you can do like this:
Read W3Schools
msgbox "Your name is " & findname() Hosting Tutorial
WebDev Books
Here you also call a Function called "findname", the
Function returns a value that will be displayed in the
message box.

When you call a Sub procedure you can use the Call
statement, like this:

Call MyProc(argument)

Or, you can omit the Call statement, like this:

http://www.w3schools.com/vbscript/vbscript_procedures.asp (2 of 6)4/15/2004 12:25:59 AM


VBScript Procedures

Grow Your
MyProc argument
Web Design
Business!

Download
a Sample

Product Spotlight Learn CSS


Positioning the
Infragistics NetAdvantage 2004 Vol. 1 easy way!
Download the latest trial version of the ultimate
Download
presentation layer toolset for building stunning user
interfaces for Windows Forms, ASP.NET, Tablet PC and a Sample
COM applications.
Learn PHP &
MySQL the easy
way!
Want To Be A Web Master? Download
a Sample
If you want to be a Web Master, you will have to host
your web site with an ISP (Internet Service Provider).
SELECTED LINKS
University Online
HostVentures provides affordable, quality web hosting Master Degree
with a 30-day money back guarantee and 24/7 Bachelor Degree
technical support!
Web Security
HostVentures will house your site in a top of the line Web Statistics
Level3 Communication facility, along with companies Web Standards
such as Yahoo, America Online, and Earthlink. The
data center offers the fastest internet connections Web Quality
(OC192) with redundancy in the network equipment,
power, cooling and servers.

Visit HostVentures

The Web Design Business Kit

Brendon Sinclair has a unique philosophy that


everyone from Freelancers to the huge International
Web Design Shops can learn from:

http://www.w3schools.com/vbscript/vbscript_procedures.asp (3 of 6)4/15/2004 12:25:59 AM


VBScript Procedures

Your Web
Design and
Development
skills don't
matter!
You don't have
to be the
cheapest bidder
to win!
Charging by
the hour is the
worst thing you
can do!
Your clients are
everywhere!
When the
project
finishes, your
income should
not!

Want to know more...?

Receive 4 FREE
CHAPTERS in your
inbox:
http://www.sitepoint.
com/launch/3a9053/2/4

or read more:
http://www.sitepoint.
com/launch/3a9053/3/4

CoffeeCup HTML Editor

The CoffeeCup HTML Editor has been setting the


standard since 1996, and it is the most popular HTML
Editor on the Web.

The CoffeeCup HTML Editor is the fastest, easiest, and


most full featured HTML Editor available. It comes with
125 Javascripts, a DHTML Menu Wizard, Thousands of
Graphics, built-in Uploading and more.

CoffeeCup has a frame designer, a table designer, a


font designer, and an HTML code cleaner, and you can
edit multiple pages at once. Other features include an
internal browser for testing and editing from the Web,
an image-previewing utility, a thumbnail image-
creation wizard, a sound gallery, online help, a step-by-
step Web design guide, and references for the latest
HTML 4.0 tags.

The CoffeeCup HTML Editor comes with more than


25,000 graphics, icons, and photos, including 30

http://www.w3schools.com/vbscript/vbscript_procedures.asp (4 of 6)4/15/2004 12:25:59 AM


VBScript Procedures

background images, and more than 175 animated


GIFs.

Read more about the CoffeeCup HTML Editor

We Help You For Free. You Can Help Us!

Make a small donation


Tell your newsgroup or mailing list
Link to us from your pages
Help us correct errors and broken links
Help us with spelling and grammar
Validate the XHTML code of this page

Jump to: Top of Page or HOME or Printer


friendly page

Search W3Schools:

Go!

What Others Say About Us

Does the world know about us? Check out these places:

Google Yahoo Alta Vista MSN Lycos Excite Ask


Jeeves HotBot

W3Schools is for training only. We do not warrant the


correctness of the content. The risk of using it remains
entirely with the user. While using this site, you agree
to have read and accepted our terms of use and
privacy policy.

Copyright 1999-2004 by Refsnes Data. All Rights


Reserved.

http://www.w3schools.com/vbscript/vbscript_procedures.asp (5 of 6)4/15/2004 12:25:59 AM


VBScript Procedures

How W3Schools
was converted to
XHTML

http://www.w3schools.com/vbscript/vbscript_procedures.asp (6 of 6)4/15/2004 12:25:59 AM

Você também pode gostar