HexIDE Alpha

Scope

Where HexIDE stops.

Most projects publish what they can do. This page is the other half, because a limit you find on day three is a bug report, and a limit you read about on day one is a decision you can make.

It is updated with every release. This version describes 0.8.0.

Status

Where each part stands.

Grouped the way you'd meet them: building a form, saving it, running it, debugging it.

  • Works
  • Partial
  • Not yet
  • By design

The workbench

Designer, toolbox, menu editorWorksFourteen controls in the toolbox, at VB6's own sizes and names. Line and the ProgressBar load from a form but aren't in the toolbox yet.
Controls HexIDE doesn't modelPartialA third-party control, or one of Windows' common controls that doesn't run yet, shows as a labelled box where VB6 draws it, and saves unchanged. F5 refuses the form. ListView, TreeView, TabStrip, SSTab, Toolbar, StatusBar, UpDown, ImageList, FlatScrollBar, Animation, MSFlexGrid and MSComctlLib's Slider run, and MonthView runs in part.
UserControls and PropertyPagesPartialThey open in their designers and save as VB6 writes them. A UserControl placed on a form runs its own code and reads its saved properties, in part. PropertyPages don't run.
Object Browser and FindPartialThe Object Browser is incomplete. Find searches the whole project by default, and Use Pattern Matching takes VB6's wildcards.
MDI forms, printing, Procedure AttributesNot yetEach is tracked as an issue. Print, Print Setup and Procedure Attributes are greyed out in the menus until they're built.
Autosave and crash recoveryPartialUnsaved work survives a crash, and the next start offers it back. There's no autosave, so save often.

Files and saving

VB6's template formsWorksAll 22 designer files VB6 itself ships survive a save byte for byte.
Project filesWorks.vbp files round-trip with their line order and description kept. If another program has changed a project's file since it opened, a save asks before replacing it. A .vbp can also be edited as text from Project Explorer.
EncodingsWorksSources are read in your ANSI code page and keep their encoding. An edit the code page can't hold is refused before anything is written.
Your own projectsPartialAnything HexIDE doesn't understand is preserved, not dropped. Preserved isn't the same as tested. See what a save changes.
Project groupsPartialGroups open and save in VB6's own format, and Make Project Group builds the projects you select. A module two projects share is still being matched to what VB6 does with both open.
Office documentsPartialAn Excel, Word or PowerPoint document's VBA project opens read-only. It can't run or be written back, and a UserForm's designer isn't shown yet.
twinBASIC projectsPartialThe .twin sources inside a .twinproj can be edited and saved, and its modules renamed and deleted. Forms, folder renames and deletes, new modules and Settings stay read-only until they're measured against the twinBASIC IDE.

Running your program

Forms and eventsWorksSeveral forms with Load, Show, vbModal and Unload. Mouse, double-click, focus and Activate events fire.
Files and settingsWorksText, Random and Binary files, the filesystem statements, and GetSetting.
The languagePartialOf 1,193 names, 610 run in full and 527 in part. 39 stop the program with a message naming what's missing. The full list.
Wrong answersPartialNone of the 1,193 names is known to give a wrong answer without an error. 17, mostly attributes, are accepted and ignored, and are listed there too.
Control propertiesPartialA TextBox ignores PasswordChar and Alignment. The CommonDialog runs Open, Save As, Font and Color, and Printer in its basic form.
Windows API and COMNot yetA module with Declare loads, but the call fails. CreateObject can't start a COM object such as Excel.Application, and type libraries don't work.
GoSub, On…GoToPartialGoSub, Return, and computed On GoTo and On GoSub run. A label inside a block keeps GoTo's existing limits. ParamArray runs.
Screen, Printer, graphicsPartialShell starts a program, and Screen and LoadPicture work in part. Line, PSet, Circle, Cls and Point work on forms and PictureBoxes, which raise Paint and take Refresh, but thick lines, arcs and sectors don't yet. SavePicture writes the formats VB6 was measured writing. The Printer object and SendKeys don't.

Debugging and making

The debuggerWorksBreakpoints, stepping, Locals, Watches, the Call Stack and an Immediate window that evaluates. Debug on an unhandled error breaks on the statement, and Error Trapping offers VB6's three settings. A breakpoint's condition decides whether it stops.
Outside debug adaptersWorksRun, Start External Debug Session drives a debug adapter you supply. One that supports them takes breakpoint conditions and Set Next Statement.
Make EXEPartialBuilds a program that needs neither HexIDE nor .NET. A made program stops silently on a run-time error, and made programs on macOS are untested.
Making with VB6WorksOn Windows with VB6 installed, HexIDE drives the real compiler.

What the editor knows

Syntax and structureWorksSyntax errors as you type, the two VB6 combos, quick info, folding, formatting, and keyword and declared-name completion. Signature help covers VB6's built-in functions.
Rename, go to definitionPartialWithin one file, and by matching text rather than meaning.
Outside language serversWorksAttach any LSP server in lsp-servers.json, and read what crossed the wire in the Protocol Inspector. One that offers them adds Find References, Call Hierarchy, Type Hierarchy, Go to Implementation, Go to Type Definition, Format Selection, Quick Fixes, the Refactor and Source Actions menus, formatting as you type, snippets, linked editing, and values beside the code while a program is paused. Entries are added and edited in the Language & Debug Servers window, where one server can be restarted on its own.
Whole-project understandingBy designCross-file references, type-aware completion after a dot, semantic diagnostics: the job of a language engine, attached through that seam.

Saving

What a save changes.

Writing a project back is the half that can lose your work, so it is measured rather than estimated: against the 22 designer files in VB6's own Template folder. Microsoft wrote those, so any difference between what goes in and what comes out is a defect.

All 22 now survive a save byte for byte. What follows is what's left.

A form HexIDE can't reproduce won't save
If a form carries something HexIDE can't write back, it opens read-only and Save declines, rather than putting a lossy copy over your original.
Twenty-two files isn't every file
A real project of any age carries controls and header lines those templates never had. HexIDE preserves what it doesn't understand, but preserved isn't tested. That is the honest reason to keep a backup.
Where the measure runs
Against VB6's template folder wherever VB6 is installed, and against the demos on every build. It can only be lowered by fixing something.
Refusing beats guessing
A refusal is recoverable. A silently rewritten project that only fails the next time VB6 opens it is not.

Permanent

By design, and not changing.

These are deliberate, and they are why the rest of the project stays small enough to finish.

The interpreter is not a compiler
It exists so you can press F5 and watch your program run, and it runs typical form programs. It is not a migration path. Where it differs from VB6, the difference is written down.
No native compiler
HexIDE doesn't emit machine code. On Windows with VB6 installed it drives the real compiler: a bridge to the genuine article, not a copy of it.
No whole-program analysis
The built-in language tooling works on syntax. Binding names across files, inferring types and refactoring need a compiler front end, and that belongs to a real language engine behind a replaceable seam.
Classic dialects only
The interpreter runs the language as Microsoft shipped it. When it meets something it doesn't recognise, it fails clearly rather than guessing.
Some of VB6 isn't coming back
SDI mode, User Documents, DHTML and IIS applications, the Data Environment, the Package and Deployment Wizard, SourceSafe, and COM add-in hosting.

Why publish this

A map is more useful than a promise.

The interpreter's behaviour is checked against the real compiler, VB6 with Service Pack 6, rather than against anybody's memory of it, and that has overturned the obvious answer many times. It produces two things: a runtime that behaves correctly where it works, and an exact record of where it doesn't.

Publishing the second one costs nothing, and saves you an afternoon.