---
title: "Explain about the Asc function?"  
description: "Explain about the Asc function?"  
author: "Amit Singh"  
published: 2011-03-19  
updated: 2020-09-18  
canonical: https://www.mindstick.com/interview/555/explain-about-the-asc-function  
category: "vb script"  
tags: ["vb script"]  
reading_time: 1 minute  

---

# Explain about the Asc function?

According to the first letter in a string it returns the ANSI code relevant to that first letter. If string is not present then a runtime error occurs. Asc function returns the first byte used. It is used only with elements containing byte data in a string.

## Answers

### Answer by Amit Singh

According to the first letter in a string it returns the ANSI code relevant to that first letter. If string is not present then a runtime error occurs. Asc function returns the first byte used. It is used only with elements containing byte data in a string.


---

Original Source: https://www.mindstick.com/interview/555/explain-about-the-asc-function

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
