Visual Basic (6.0)

This assessment applies the coupling account — coupling as access to a shared resource, and the coupling floor [1], [2] — and the knowledge-embodiment theorem [3]; the language is assessed against its official reference [4].

Snapshot Visual Basic 6 (6.0) — released 1998 · lifecycle retired (the last classic release)

Family Visual Basic — shelf: Application

The language’s main business is building general application software, with a managed runtime or a rich standard library. A shelf groups; it does not classify — the tags below carry every use, paradigm, and platform of this snapshot.

Trajectory 1.0 (May 1991 — first release) · 6.0 (1998 — the last classic release) · 16 (8 November 2021 — shipped with Visual Studio 2022)

Tags

Use — Application, Desktop

Paradigm — Object-oriented, Imperative

Platform — Native

Lifecycle — Retired

Memory — Reference counted

Typing — Static, weak

Resources

The language’s official entry points, and the documents that name the release this page assesses. A link marked this release pins the document to Visual Basic 6 (6.0); an unmarked link is the current reference for the language.

Landing page

Specification and reference

API documentation

Tutorial

Package registry

1 Assessment

This page assesses Visual Basic in five parts: core coupling — what the language’s own constructs force; ecosystem coupling — what the surrounding platform, tooling, and community cost; engineering readiness — whether the artifact can be reproduced, verified, observed, worked in quickly, connected to other languages, and governed openly; the profile — the unscored facts a score cannot express; and the scoring detail — the mechanism marks and the arithmetic behind every score. A ✅ bullet marks a construct that helps. A ⚠️ or ❌ bullet marks a cost; the scoring model does not price every cost named here.

Core coupling 62.0/100 · Ecosystem coupling 64.8/100 · Engineering readiness 27.5/100

1.1 Core coupling

1.1.1 Type

  • ✅ Implements decouples the caller from the class: A class can implement an interface without inheriting an implementation
  • ❌ Undeclared variables are Variant: Option Explicit is opt-in, so a name can accept anything (T2)
  • ❌ There are no namespaces: Every public name in a project shares one global scope (T6)
  • ❌ There are no generics: A collection holds Variant, and a read is a cast (T5)
  • ❌ COM dispatch resolves at run time: IDispatch and TypeOf reach a member by name (T7)
  • ❌ An object variable can be Nothing: Nothing in the type says whether it is set (T10)
  • ❌ There is no sum type: A closed set of cases is an enum or a set of constants, and a Select Case is not checked for exhaustiveness (T4)

1.1.2 Construction

  • ✅ Class_Initialize is the constructor: The object states its own setup
  • ❌ A module-level variable is global: A public variable in a .bas module is reachable from the whole project (C1)
  • ❌ A property is read/write by default: A field is mutable unless the author writes a getter only (C2)
  • ❌ One value, many names: ByRef is the default parameter mode (documented), so the callee’s writes land in the caller’s variables (C6)
  • ❌ Module-level initialization runs at load in loader order; the startup form is not a source-visible order (C8)

1.1.3 Memory

  • ✅ Objects are reference-counted: The last released reference frees the object, so release is deterministic
  • ⚠️ A reference cycle leaks: Two objects that point at each other are never freed
  • ❌ The undeclared class has no catch: On Error covers statement-level errors, and a stack overflow in the recursive call ends the program (the documented crash class) outside every handler (Er6)
  • ❌ COM reference counting leaks circular references; the process never releases them (M7)

1.1.4 Error

  • ❌ On Error GoTo is the failure path: The failure travels by a jump and a global Err object, and no signature states it (Er1)
  • ✅ On Error Resume Next is explicit: The skip is written at the site

1.1.5 Concurrency

  • ✅ An ActiveX EXE can run a unit out of process: The mechanism is a separate component
  • ❌ There is no first-class thread or channel: Concurrency is a COM apartment and a separate process (K5)

1.1.6 Platform

  • ❌ A program runs on Windows through COM: The registry, the apartment, and the binary format are the platform (P1)
  • ⚠️ The VB6 runtime must be installed: msvbvm60.dll ships with the operating system, not with the program

1.1.7 Trade-offs (not coupling)

  • A Variant default buys speed of writing: An undeclared variable accepts anything, and the type error arrives at run time
  • COM is a real boundary: A server is called through an interface, and the implementation is replaceable
  • Reference counting is deterministic but fragile: A cycle leaks, and the release order is the program’s to know
  • The language is frozen: A program written for 6.0 will not move to a modern runtime unchanged

1.2 Ecosystem coupling

1.2.1 Performance

  • ✅ The compiler emits native code: A project can be built to a native executable
  • ⚠️ Late binding is slow: An IDispatch call resolves a name at run time

1.2.2 Ecosystem

  • ❌ The platform is proprietary: Visual Studio 6 and the VB6 runtime are Microsoft products (Ec4)
  • ❌ The IDE is locked to Windows: The designer and the debugger are Windows applications (Ec5)
  • ❌ A large body of VB6 code remains: A component written in 1998 still runs on a supported Windows (Ec7)
  • ✅ The component model is standard: An ActiveX control or a COM server is callable from any COM client
  • ✅ A component publishes a COM type library, the platform’s binary interface for its consumers [5] (Ec8)

1.2.3 Evolution

  • ✅ The language is frozen at 6.0: No release after it changes the language
  • ❌ The line is discontinued: Support ended in 2008, and no successor accepts the source (V3)
  • ❌ Build variants multiply: #If blocks with project-defined constants select which code compiles into the binary (V7)

1.2.4 Domain

  • ❌ The centre is the Windows desktop and COM: A line-of-business form over a database (D1)
  • ❌ The form and the event set the architecture: A program is a set of controls and handlers (D3)

1.2.5 Learning

  • ✅ The language is small and widely taught: BASIC syntax and a drag-and-drop designer

1.2.6 Syntax

  • ❌ Dim, Set, and End If are spelled out: The declaration and the block are verbose (S1)
  • ⚠️ The default-property syntax is dated: Text1.Text and the line-continuation underscore

1.2.7 Testing

  • ✅ The IDE debugs in place: Breakpoints, watches, and the immediate window
  • ❌ No monotonic reading published: Timer() answers with the wall date, and the runtime ships no elapsed reading (G4)

1.2.8 Security

  • ⚠️ A Variant hides the type until run time
  • ❌ ADO and dynamic SQL take a string: A WHERE clause built by concatenation is an injection path (Q3)

1.2.9 Delivery targets

What ships from a producer to a consumer, and whether the interface across a release boundary is promised. Ec8 is present when one compiled target crosses with no promise.

Target Ships as Crosses a producer boundary Cross-release promise
ActiveX component compiled yes yes — A component publishes a COM type library, the platform’s binary interface for its consumers [5]

1.3 Engineering readiness

1.3.1 Reproducibility

  • ❌ The project build is not reproducible: A .vbp build embeds paths and a timestamp (Y1)
  • ❌ A dependency is a registered DLL: Nothing in the project pins the component version (Y2)
  • ❌ No contract the toolchain reads: references are IDE checkboxes in a registry entry, and no machine-read manifest travels with the project (Y18)

1.3.2 Supply chain

  • ❌ A component carries no signature: Registration is a registry entry (Y3)

1.3.3 Observability

  • ❌ There is no tracing standard: A program writes a file or the event log (Y5)
  • ❌ There is no structured logging facility: Output is a string (Y6)

1.3.4 Feedback

  • ✅ The IDE reports a syntax error as it is typed

1.3.5 Interop

  • ❌ There is no portable target: A binary runs on Windows only (Y10)

1.3.6 Governance

  • ❌ One vendor governs the language: Microsoft defines the runtime and the tooling (Y11)
  • ❌ The specification is a vendor document: The language is documented, not standardised (Y12)
  • ❌ Semantics rest on the product documentation: the manuals define the language as the shipped IDE behaves, and no conformance suite exists (Y17)
  • ❌ No parser published: the grammar is prose in the IDE documentation, the compiler is closed, and no parser API ships (Y19)

1.4 Profile

Unscored, and kept separate from every score on purpose. The profile records what a mechanism price cannot express: what a running program costs, how well a coding model and an agent work in the language, and whether a safety-critical path exists.

1.4.1 Energy and cost

What this axis asks: what does a running program cost in energy and time?

  • ⚠️ No independent energy or time benchmark for the language is recorded.

1.4.2 AI and agent readiness

What this axis asks: how well does a coding model and an agent work in this language?

  • ❌ Sparse public training data: models write it less reliably than a mainstream language [6].

1.4.3 Safety certification

What this axis asks: is there a certified or standards-qualified path to a safety-critical system?

  • ⚠️ No certified or standards-qualified path for safety-critical systems.

1.5 Scoring detail

1.5.1 Core coupling Dimensions

Dimension Mechanism Description Imposed by Present Weight
Type T1 dynamic no static check language — 0
T2 weak static language ✅ −8
T3 dynamic/duck dispatch language — 0
T4 no sum types language ✅ −4
T5 no generics language ✅ −4
T6 no namespaces language ✅ −8
T7 type erasure/reflection language ✅ −4
T8 operator overloading language — 0
T9 inheritance required for polymorphism language — 0
T10 no null-safety language ✅ −8
T11 no module boundary language — 0
T12 no effect tracking language ✅ −8
T13 async/sync colouring language — 0
T14 unchecked foreign boundary language ✅ −4
T15 chars are encoding units language — 0
Type cost −13.7 (−48)
Construction C1 global mutable state by default language ✅ −15
C2 no immutability by default language ✅ −4
C3 constructors coupled to allocation language — 0
C4 no constructor/validation language — 0
C5 unpinned collection order language — 0
C6 aliasing by default language ✅ −8
C7 undeclared control transfer language — 0
C8 no source-visible init order language ✅ −8
Construction cost −10.0 (−35)
Memory M1 manual deallocation runtime — 0
M2 GC non-deterministic pauses runtime — 0
M3 no RAII language — 0
M4 no ownership model language — 0
M5 uninitialized reads language — 0
M6 unchecked reinterpretation language — 0
Er6 uncatchable runtime fault language ✅ −8
M7 reference cycles leak runtime ✅ −8
Memory cost −4.6 (−16)
Error Er1 no structured path language ✅ −15
Er2 unchecked exceptions only language — 0
Er3 errors ignored/non-exhaustive language — 0
Er4 no composable result type language — 0
Er5 no isolation unit for a fault runtime — 0
Error cost −4.3 (−15)
Concurrency K1 GIL/no parallel runtime — 0
K2 shared mutable state default language — 0
K3 manual sync no race detection runtime — 0
K4 no structured concurrency language — 0
K5 no primitives language ✅ −4
K6 thread-per-task cost runtime — 0
Concurrency cost −1.1 (−4)
Platform P1 cannot function outside one vendor/domain context ✅ −15
P2 single-vendor but other uses context — 0
P3 legacy/discontinued platform context — 0
P4 poor domain fit context — 0
Platform cost −4.3 (−15)

Core coupling score: 62.0/100 — 133 of the 350 inventory points are present, so the axis cost is 100 × 133 ÷ 350 = 38.0 and the score is 100 − 38.0. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.

1.5.2 Ecosystem coupling Dimensions

Dimension Mechanism Description Imposed by Present Weight
Performance R1 interpreted no AOT/JIT runtime — 0
R2 GC pauses runtime — 0
R3 JIT warmup runtime — 0
Performance cost 0
Ecosystem Ec1 no package manager context — 0
Ec2 fragmented tooling context — 0
Ec3 small/niche/discontinued context — 0
Ec4 proprietary context ✅ −8
Ec5 platform-locked tooling context ✅ −8
Ec6 monoculture context — 0
Ec7 legacy burden context ✅ −8
Ec8 unpromised binary boundary context — 0
Ec9 unpromised data boundary context — 0
Ecosystem cost −9.4 (−24)
Evolution V1 breaking changes language — 0
V2 frozen context — 0
V3 discontinued context ✅ −15
V4 glacial standards context — 0
V5 silent default drift runtime — 0
V7 build-variant state space context ✅ −8
Evolution cost −9.0 (−23)
Domain D1 domain/vendor lock-in context ✅ −15
D3 framework forces architecture context ✅ −8
Domain cost −9.0 (−23)
Learning L1 steep context — 0
L2 large surface/multi-paradigm context — 0
L3 sparse docs context — 0
Learning cost 0
Syntax S1 verbose language ✅ −8
S2 inconsistent language — 0
S3 punctuation-heavy language — 0
Syntax cost −3.1 (−8)
Testing G1 weak tooling context — 0
G2 poor debugging context — 0
G3 runtime-only errors context — 0
G4 no published monotonic clock runtime ✅ −4
Testing cost −1.6 (−4)
Security Q1 memory-unsafe language — 0
Q2 dynamic/weak typing risk language — 0
Q3 known vulnerability/injection context ✅ −8
Q4 silent integer overflow language — 0
Security cost −3.1 (−8)

Ecosystem coupling score: 64.8/100 — 90 of the 256 inventory points are present, so the axis cost is 100 × 90 ÷ 256 = 35.2 and the score is 100 − 35.2. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.

1.5.3 Engineering readiness Dimensions

Dimension Mechanism Description Imposed by Present Weight
Reproducibility Y1 build not reproducible context ✅ −15
Y2 dependencies not pinned context ✅ −8
Y14 no toolchain version pin context — 0
Y18 no machine-read project contract context ✅ −8
Reproducibility cost −18.1 (−31)
Supply chain Y3 no signed provenance context ✅ −15
Y4 registry without namespacing context — 0
Y16 no advisory feed context ✅ −8
Supply chain cost −13.5 (−23)
Observability Y5 no stable tracing standard context ✅ −8
Y6 no structured logging context ✅ −4
Y15 no post-mortem diagnostics runtime ✅ −8
Observability cost −11.7 (−20)
Feedback Y7 slow build context — 0
Y8 no fast in-editor analysis context — 0
Y13 no bundled debugger context — 0
Feedback cost 0
Interop Y9 no foreign-function interface language — 0
Y10 no portable target context ✅ −4
Interop cost −2.3 (−4)
Governance Y11 single-vendor governance context ✅ −15
Y12 closed specification context ✅ −15
Y17 no conformance mechanism context ✅ −8
Y19 no published parser context ✅ −8
Governance cost −26.9 (−46)

Engineering readiness score: 27.5/100 — 124 of the 171 inventory points are present, so the axis cost is 100 × 124 ÷ 171 = 72.5 and the score is 100 − 72.5. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.

Verdict: Visual Basic 6 is a form-and-COM language: the interface and the component model decouple a caller, and reference counting frees an object deterministically, but the default Variant, the flat namespace, On Error GoTo, and the Windows-only runtime keep the coupling high. Main strength: a small language with a real component boundary. Main weakness: the failure path is a jump, and the program runs only inside COM on Windows.


The formal development. The definitions, theorems, and proofs behind this page are published in:

All published papers

References

[1]
Y. Loth, “On the nature of coupling: All coupling as shared resource access.” Zenodo, Aug. 2026. doi: 10.5281/zenodo.21925121.
[2]
Y. Loth, “Coupling as a consequence of cohesion: Decomposition, the coupling floor, and domain-imposed coupling.” Zenodo, Aug. 2026. doi: 10.5281/zenodo.21925201.
[3]
Y. Loth, “On the nature of cohesion: Cohesion as correctness relative to a partitioning rule.” Zenodo, Jul. 2026. doi: 10.5281/zenodo.20492912.
[4]
Microsoft, “Visual basic 6.0 documentation.” Microsoft, 1998. Available: https://learn.microsoft.com/en-us/previous-versions/visualstudio/visual-basic-6/
[5]
Microsoft Corporation, “Type libraries — OLE automation documentation.” Microsoft Corporation, 2026. Available: https://learn.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-6.0/aa266534(v=vs.60)
[6]
S. Joel, J. J. Wu, and F. H. Fard, “A survey on LLM-based code generation for low-resource and domain-specific programming languages,” ACM Transactions on Software Engineering and Methodology, 2025, doi: 10.1145/3770084.