answersLogoWhite

0


Best Answer

num = InputBox("Enter a number: ","PROGRAM: Square")

sumSquare = CInt(num) * CInt(num)

MsgBox("The square of " & num & " = " & sumSquare)

=====

*NOTE*: The function CInt() is what we use to convert a text string to become a numeric integer value.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you write a vbscript for converting alphanumeric to numeric?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is the shell script program for adding five digit numbers?

It depends upon which language you intend to write your script, however 5 digit numbers are simply numeric value and any scripting language that supports basic arithmetic operators will be able to achieve this easily. The hardest part is converting the user input (which is typically a character sequence) into an actual number, however most scripting languages will provide some means of converting strings to numeric values.


Write a program in vbscript to display a multiplication table in web page?

Option explicit Dim val,indx val=inputbox("enter any number") For indx= 1 to 10 print val&"*"&indx&"="&val&"*"indx Next


How do you test your code?

Hi, Prepare unit testing test cases. Take each control/object in your progra, write test case (what to enter, alpha or numeric or alpha/numeric, date etc) and what are you expecting from the system once you enter the data. Try all options that you have provided (like Add, Change, Display, Print etc) and see whether the program functions as per the requirement. The program should do intended functions and no un-intended thing to happen. hope this helps


What is a conversion function?

As the name suggests, a conversion function is a function that converts a value from one type to another. Many such conversions are either implicit or built-in operations, such as when converting from an int to a double. However, when converting between user-defined types, or between a user-defined type and a built-in type, we must write a function to explicitly perform the conversion for us. In object-oriented languages, we rely on conversion constructors and conversion operators to perform these conversions implicitly, but in C we must explicitly call the appropriate conversion functions.


Write A-Z in ASCII code?

A = 0x41 = 65 B = 0x42 = 66 C = 0x43 = 67 ... Y = 0x59 = 89 Z = 0x5A = 90 However, note that depending on a particular numeric or bit value for a character is not always portable. It depends on the implementation.