Name
StrReverse Function
Syntax
StrReverse(str_expression
)
-
str_expression
Use: Required
Data Subtype: 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
isNull
, the function generates runtime error 94, “Invalid use of Null.”
Get VBScript in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.