W3Schools.com (2024)

Table of Contents
Syntax Example 1 Example 2 Example 3

❮ Complete VBScript Reference

The StrComp function compares two strings and returns a value that represents the result of the comparison.

The StrComp function can return one of the following values:

  • -1 (if string1 < string2)
  • 0 (if string1 = string2)
  • 1 (if string1 > string2)
  • Null (if string1 or string2 is Null)

Syntax

StrComp(string1,string2[,compare])


Parameter Description
string1 Required. A string expression
string2 Required. A string expression
compare Optional. Specifies the string comparison to use. Default is 0

Can have one of the following values:

  • 0 = vbBinaryCompare - Perform a binary comparison
  • 1 = vbTextCompare - Perform a textual comparison

Example 1

Example 2

response.write(StrComp("VBScript","vbscript"))

Output:

-1

Example 3

response.write(StrComp("VBScript","vbscript",1))

Output:

❮ Complete VBScript Reference

W3schools Pathfinder

Track your progress - it's free!

W3Schools.com (2024)
Top Articles
What Is a Debt Management Plan? - NerdWallet
3 No-Brainer Stocks to Buy With $20 Right Now | The Motley Fool
Njdep Org Chart
Carmel.clay Schools Calendar
Lesson 1 Homework 5.5 Answer Key
When His Eyes Opened 3001
Osu Hematology
Find A Red Cross Blood Drive
Nudify Review: Is It the Best AI Clothes Remover?
Siemens söker Business Controller Siemens i Solna | LinkedIn
Dutch Sheets Give Him 15 Today's Message Today
Just Busted Lewisburg Tennessee
Play It Again Sports Knoxville Photos
Mail Healthcare Uiowa
Das E-Mail Center im Web - für E-Mail @t-online.de der Telekom
Cinemas of Stockholm 🎥 — Stockholmist.
Puff Hall Road
Magicseaweed Capitola
80 For Brady Showtimes Near Cinemark At Harlingen
Costco Fuel Price
Tighe Hamilton Hudson Ma Obituary
Caldwell Idaho Craigslist
Motorcycle For Sale In Deep East Texas By Owner
Wedding Dr Amy Hutcheson Married
Elsenpeter Auctions Monticello Mn
Misou Nail Spa
The Bear Spaghetti | Culinary Cartel
Lol Shot Io Unblocked
The Year The Internet Stopped Laughing
Bowfa Ge
Find A Red Cross Blood Drive
Emily Alexander Leaked
Small Party Hall Near Me
Melvor Volcanic Cave
'All good here' was 1 of the final texts sent from the doomed Titan submersible
Devotion Showtimes Near O'neil Cinemas - Brickyard Square 12
Tacoholic St Joseph
Awesome-Typescript-Loader
Stranded Alien Dawn Cave Dweller
Los Angeles Craigs List
Completed Data, Data, Everywhere course on Coursera | Pryanshu Gupta posted on the topic | LinkedIn
Master of Science in Data Science | Merrimack Online Programs
Appsanywhere Mst
Rpg Champions Trello
Play Coolmathgames.com
Ticket To Paradise Showtimes Near Cinemark 14 Chico
8 1944 1945 Jerome Weidman Playwright Skippy Adelman Old Photo Negative Lot 393A for Sale
Weilers Gentle Giants
Google Jobs Denver
Craigslist Cars For Sale By Owner Memphis Tn
Jades Lafayette Parish
2425 Nimmo Pkwy Virginia Beach Virginia 23456 Tty 711
Latest Posts
Article information

Author: Jamar Nader

Last Updated:

Views: 6009

Rating: 4.4 / 5 (75 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Jamar Nader

Birthday: 1995-02-28

Address: Apt. 536 6162 Reichel Greens, Port Zackaryside, CT 22682-9804

Phone: +9958384818317

Job: IT Representative

Hobby: Scrapbooking, Hiking, Hunting, Kite flying, Blacksmithing, Video gaming, Foraging

Introduction: My name is Jamar Nader, I am a fine, shiny, colorful, bright, nice, perfect, curious person who loves writing and wants to share my knowledge and understanding with you.