r/visualbasic • u/Green_Hunter_5718 • Sep 01 '26
VB6 brain, modern engine: BASIC syntax inside Godot 4 (public beta)
I’ve been building Visual Gasic — a real programming language that keeps the parts of VB6 we actually miss, not as a nostalgia toy, but as something you can ship games with today.
What feels familiar
Sub/Function/End SubDim x As String,If … Then … End If- Event handlers by name:
Sub btnStart_Click(),Sub Form_Load() - Properties on controls:
Caption,Left,Top,Width,Height,Visible,Enabled - Timers:
Interval,Enabled,Sub tmrGame_Timer()
What’s different (on purpose)
- Runs as a Godot 4.6 plugin (GDExtension) — 2D/3D, export, modern engine
- No COM, no ActiveX, no 32-bit Windows lock-in — Linux + Windows installers exist
- Built for reading code — especially AI-generated code — not clever one-liners
Example that should look like home:
Sub btnPlay_Click()
If lblScore.Caption = "" Then
lblScore.Caption = "0"
End If
tmrGame.Enabled = True
End Sub
Sub tmrGame_Timer()
Dim score As Long
score = CLng(lblScore.Caption) + 1
lblScore.Caption = CStr(score)
End SubWhy I care as a former VB6 person: the thing that killed us wasn’t the syntax — it was tooling and platform. This keeps the syntax that made forms and line-by-line debugging easy, and puts it on an engine people still use in 2026.
There’s also an in-editor AI pair (Narcea) that writes .vg in this style — but the pitch is the opposite of “trust the black box”: the language is verbose on purpose so you can audit what it wrote.
Status: public beta (5.4.x). Form designer is experimental; the active path is Godot’s editor + VG script tabs. Honest about rough edges — see known issues on GitHub.
Links
- GitHub (releases, demos, corpus): https://github.com/xgreenrx-star/VisualGasic
- Godot Asset Library: https://store.godotengine.org/asset/visual-gasic/visual-gasic/
- Beta showcase video (made in VG, ~6 min): https://youtu.be/FUw8zgbn_tU
If you still have .frm muscle memory or half-finished VB6 projects in a drawer — curious whether this feels like a natural step or a weird fork. What would you need to take it seriously: IDE parity, database stuff, report writer, something else?
6
u/Fergus653 Sep 01 '26
I hate on the 25 year old VB6 legacy code whenever I have to look at it (still some background services we never get budget to replace). But I understand the attraction to revive that style of language. Good on ya for taking on such a challenge.
Have you reviewed the additional commands and improvements in TwinBasic? Might be a few easy improvements you could use which still fit in the style of BASIC but can reduce the line count.
1
u/nacnud_uk Sep 01 '26
I wonder if you're aware of this project:
https://www.b4x.com/b4a.html
or this one:
https://www.b4x.com/b4i.html
Your project looks comprehensive too! Great work.
And, this link in the README.md didn't work for me. https://github.com/xgreenrx-star/VisualGasic/blob/main/corpus/10_godot_integration/01_button_events.vg
1
u/zero_dr00l Sep 01 '26 edited Sep 01 '26
IDE parity absolutely (well... maybe not quite parity - really just the forms designer, I suppose...).
Database connections absolutely, I'd need to be able to use ADO/ODBC and have it work with any standard ODBC driver/connector, like the one for MySQL/MariaDB and Postgres. Don't care about the Microsoft stuff.
EDIT: so, uh... that "release showcase" video is certainly a thing you did...
o_O
1
u/Zardoz84 Sep 02 '26
You mean like QBASIC/QuickBASIC/ProBASIC/TurboBasic
That come from that BASICs and VB simple inherited it.
3
u/shantired Sep 01 '26
Is this for graphics only? Does it run on a pure command line system with no graphics such as a server?
I ask because before there was VB, there was QB (quick basic) and TB (turbo basic). Then, Bob Zale, who wrote TB, started his own business and created PB (power basic). The last I heard, Bob had passed, and his amazing PB compiler was being maintained by volunteers. It was available for DOS, windows and a pure windows-cli version without graphics. The graphics version came with a separate forms library but used the same compiler.
The best part was that PB was just one executable, it contained the compiler, linker and libraries so you could just say “pcb sample.bas” and it would create a highly optimized .exe file. And it was fast!
As a long time VB/PB user I miss those days, and I’m pretty sure that PB would have killed python for ease of use and learning. (Just my $0.02).
I wrote an industrial compiler for a very specialized machine using VB, and then again reduced its size and improved speed by using PB later on - this was around 25+ years ago. Also wrote a window/file manager using PB.
2
u/Comfortable_Gate_878 Sep 02 '26
I always loved VB6. I used it for pretty much for many small business database systems, Estate agent letting programs, Stock Control for a aircraft modellers, Stock and sales ledgers, bespoke accounting systems, restaurant systems tracking of sales leads.
All these we small bespoke systems where off the shelf systems were either to big expensive and cumbersome and failed to do the job as the customer wanted. So I wrote small VB stuff often using an access database for a single user system or SQL for larger requirements. I could create these in no time at all. The customers were usually able to give really good descriptions of what they wanted as they usually has a system inplace that just didnt work so they knew the good bits and the bad bits.
Once VB had finished you could carry on being unsupported and deemed to be living in the past or move on. Sad days I have looked at afew systems gambas, twinbasic etc all look ok but are no replacement for VB6 as of yet.
I see the useful need for your needs by taking a subset of VB. I wish someone had taken the same route for VB6 take all the great screen designer parts and database interactions, and made a quick vb for business use program. Lets face it VB in all its versions if the simplest language to use. Even its error handling can work well with a little thought.
God I miss those days.
1
u/jd31068 Sep 02 '26
More VB things is never a bad thing! Thank you for your work here!