HexLibraryHexLibrary
</> HexCodeSign inSign up
PythonJavaScriptTypeScriptCC++JavaPHPGoRustRubyBashSQLLuaPerlCOBOLPascalDelphiFortranDartSwiftC#JuliaGroovyRElixirHaskellKotlinScalaClassic ASPClipperMS-DOS
LESSONS
Introduction to Classic ASPVariablesStringsConditions (If / Select Case)Loops (For / Do While)Form and Request
REFERENCE
📖 Overview
🖥️ Output
📦 Variables
✍️ Text & Number
Len / UCase / MidArithmetic ( + - * / Mod )
🔁 Condition & Loop
🧩 Functions & Forms
Classic ASP›REFERENCE›Text & Number
✍️

Text & Number

String functions and arithmetic.

CommandDescription
Len / UCase / MidLength, uppercase, substring.
Arithmetic ( + - * / Mod )Four basic operations and remainder.

Len / UCase / Mid

Try it yourself →

Length, uppercase, substring.

Syntax

Len(s) · UCase(s) · Mid(s, start, length)

Description

Len gives length, UCase/LCase handles letter casing, Mid extracts a substring (1-indexed), Replace performs substitution.

Example

<%
Response.Write Len("hello") & "<br>"
Response.Write UCase("hello")
%>

Expected output

5<br>HELLO

When to use?

Text processing.

Arithmetic ( + - * / Mod )

Try it yourself →

Four basic operations and remainder.

Syntax

a + b, a Mod b

Description

Remainder is done with the Mod keyword, integer division with \.

Example

<%
Response.Write 7 Mod 2
%>

Expected output

1

When to use?

Calculations.

HexLibraryHexLibrary

Learn programming more clearly. Every command is explained line by line with colors, reinforced with runnable exercises, test your code instantly — all in one place, free.

Learn

  • Home
  • Languages & Lessons
  • HexCode

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Use

Other Projects

  • HexToolz
  • Free Service Manuals
© 2026 HexLibrary · The clearest way to learn code