How to Convert a String to INT in Classic ASP
- 1). Right-click the Classic ASP page that processes the user input and select "Open With." Click the "Classic ASP" editor. You can also use the newer .NET editor to edit older ASP code.
- 2). Create a variable for the integer value. The following code creates a variable for Classic ASP pages:
Dim number As Integer - 3). Convert the string variable. The following code converts a string named "input" to an integer and assigns it to the variable you created:
number = CInt(input)
Source...