---
title: "What are string functions in VBScript?"  
description: "What are string functions in VBScript?"  
author: "Amit Singh"  
published: 2011-03-19  
updated: 2020-09-21  
canonical: https://www.mindstick.com/interview/551/what-are-string-functions-in-vbscript  
category: "vb script"  
tags: ["vb script"]  
reading_time: 2 minutes  

---

# What are string functions in VBScript?

**String functions in VB Script\**\
Asc() - Returns ANSI Character Code \
Chr() - Returns Character from ANSI Code \
InStr() - Find a string within another \
InStrRev() - Find a string within another (Reverse) \
LCase() - Convert a string to lowercase \
Left() - Crops a string from left \
Len() - Determine the length of a string \
LTrim() - Remove leading spaces from a string \
Mid() - Crops a string \
Replace() - Replace a substring within a string \
Right() - Crops a string from right \
RTrim() - Remove trailing spaces from a string \
Space() - Creates a string with the specified number of spaces \
StrComp() - Compare two strings \
String() - Creates a repeated character string \
StrReverse() - Reverse the characters of a string \
Trim() - Remove both leading and trailing spaces from a string \
UCase() - Convert a string to uppercase

## Answers

### Answer by Amit Singh

**String functions in VB Script\**\
Asc() - Returns ANSI Character Code \
Chr() - Returns Character from ANSI Code \
InStr() - Find a string within another \
InStrRev() - Find a string within another (Reverse) \
LCase() - Convert a string to lowercase \
Left() - Crops a string from left \
Len() - Determine the length of a string \
LTrim() - Remove leading spaces from a string \
Mid() - Crops a string \
Replace() - Replace a substring within a string \
Right() - Crops a string from right \
RTrim() - Remove trailing spaces from a string \
Space() - Creates a string with the specified number of spaces \
StrComp() - Compare two strings \
String() - Creates a repeated character string \
StrReverse() - Reverse the characters of a string \
Trim() - Remove both leading and trailing spaces from a string \
UCase() - Convert a string to uppercase


---

Original Source: https://www.mindstick.com/interview/551/what-are-string-functions-in-vbscript

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
