O'Reilly logo

VBScript in a Nutshell, 2nd Edition by Ron Petrusha, Matt Childs, Paul Lomax

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

StrReverse Function

Syntax

StrReverse(str_expression)
str_expression

Use: Required

Data Type: String

The string whose characters are to be reversed.

Return Value

A String.

Description

Returns a string that is the reverse of the string passed to it. For example, if the string “and” is passed to it as an argument, StrReverse returns the string “dna.”

Rules at a Glance

  • If str_expression is a zero-length string (” “), the function’s return value is a zero-length string.

  • If str_expression is Null, the function generates runtime error 94, “Invalid use of Null.”

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required