VBScript Tutorial
VB HOME
VB Introduction
VB How to
VB Where to
VB Variables
VB Procedures
VB Conditional
VB Looping
VB Summary
Examples
VB Examples
References
VB Functions
VB Keywords
Selected Reading
Web Statistics
Web Glossary
Web Hosting
Web Quality
W3Schools Tutorials
W3Schools Forum
Helping W3Schools
|
VBScript Right Function
Complete VBScript Reference
The Right function returns a specified number of characters from the right side of a string.
Tip: Use the Len function to find the number of characters in a string.
Tip: Also look at the Left function.
Syntax
| Parameter |
Description |
| string |
Required. The string to return characters
from |
| length |
Required. Specifies how many characters to return. If
set to 0, an empty string ("") is returned. If set to greater than or equal
to the length of the string, the entire string is returned |
Example 1
dim txt
txt="This is a beautiful day!"
document.write(Right(txt,11))
Output:
utiful day!
|
Example 2
dim txt
txt="This is a beautiful day!"
document.write(Right(txt,100))
Output:
This is a beautiful day!
|
Example 3
dim txt,x
txt="This is a beautiful day!"
x=Len(txt)
document.write(Right(txt,x))
Output:
This is a beautiful day!
|
Complete VBScript Reference
 |
|
|
|
Check your site for errors with one click. No more one-by-one page checks, DeepTrawl will find all the errors on your site in seconds.
DeepTrawl is incredibly easy to use, simply type the url of your site & hit go. You'll see all the errors in all your pages, including:
- Dead Links (404's etc.) |
- Missing Images |
- Spelling Mistakes (USA / UK / Canadian English) |
- Invalid xhtml (checked against w3c standards) |
- Common html Errors (missing meta-tags etc.) |
- User Defined Errors (out of date texts/html etc.) |
- Unwanted User Postings (profanity, spam) |
Fix any error easily using the integrated html editor. Download free trial now for PC & Mac.
More Info || Download Free Trial || Watch Demo Video
|
|
 |
|
Get Your Diploma!
W3Schools' Online Certification Program is the perfect solution for busy
professionals who need to balance work, family, and career building.
The HTML Certificate is for developers who want to document their knowledge of HTML, XHTML, and CSS.
The JavaScript Certificate is for developers who want to document their knowledge of JavaScript and the HTML DOM.
The ASP Certificate is for developers who want to document their knowledge of ASP, SQL, and ADO.
|
|
|
Jump to: Top of Page
or HOME or
Printer friendly page
W3Schools provides material for training only. We do not warrant the correctness of its contents.
The risk from using it lies entirely with the user.
While using this site, you agree to have read and accepted our
terms of use and
privacy policy.
Copyright 1999-2008 by Refsnes Data. All Rights Reserved.
|
|
|