On April 23, 2021, I helped Wayne Phillips introduce the world to twinBASIC at the Access DevCon Vienna conference. I boldly predicted that twinBASIC (along with the Monaco editor) would replace VBA and its outdated development environment by 2025. With that goal in mind, this weekly update is my attempt to keep the project fresh in the minds of the VBA development community.
Every Sunday, I will be providing updates on the status of the project, linking to new articles discussing twinBASIC, and generally trying to increase engagement with the project. If you come across items that should be included here, tweet me @NoLongerSet or email me at mike at nolongerset dot com.
Here are some links to get involved with the project:
- Custom twinBASIC IDE Installation Guide (NOTE: the twinBASIC VSCode extension is under a feature freeze until 2023)
- GitHub Issue Tracker (report bugs)
- twinBASIC Discord Server (chat about the project)
History Panel Added in IDE
- Bookmarks are shown most recently edited first.
- Clicking on a bookmark takes you to the last edited line in that procedure.
- Hovering over a bookmark reveals date-time and line number details.
- Bookmarks are not added if you only view a procedure.
- To force add a bookmark to the history, just make a temporary edit (like adding then deleting a space).
- Bookmarks persist between sessions.
- Bookmark entries are removed when the associated file is deleted.
This looks like an awesome feature that I didn't even know I needed until now.
Ctrl + F4 / Ctrl + W to Close Active Code Tab
Around the Web
Explorer-style Drag-Drop Images with tB-defined x86+x64 interfaces
A while back I posted this project:
I wanted to try my hand at using these interfaces in x64 apps. A 64-bit version of oleexp doesn't seem likely; there's seemingly insurmountable barriers to using midl with a project that needs to redefine things in the force-included headers, and the original types weren't preserved so every single interface would have to be manually reviewed and updated if it uses pointer types. But, **twinBASIC lets you define interfaces as a native language feature**. So I set about re-implementing all the necessary ones for this project.
Here are the updates from the past week. You can also find this information by visiting the GitHub twinBASIC Releases page.
- fixed: AddressOf where is the current procedure [ https://github.com//issues/1049 ]
- fixed: Select Case Err problem [ https://github.com//issues/1050 ]
- fixed: module Function with Date return value sometimes gives incorrect result (Win64 compiler only) [ https://github.com//issues/1042 ]
Exit Forbehaviour, ensuring the control variable is not erroneously cleared [ https://github.com//issues/1133 ]
- added: attribute [ PackingAlignment(n) ] for UDTs, equivalent to #pragma pack in C [ https://github.com//issues/1007 ]
- fixed: IDE menu would sometimes appear erroneously whilst debug stepping
- fixed: CByte(True) causing overflow runtime error [ https://github.com//issues/1134 ]
- improved: error handling around Ambient properties of ActiveX controls to better support Ax controls [ https://github.com//issues/1139 ]
- improved: CTRL+F4 and CTRL+W can now be used to close the current tab in the IDE [ https://github.com//issues/1136 ]
- added: (EXPERIMENTAL) HISTORY panel in the IDE [ https://github.com//issues/1079 ]
- fixed: (regression in BETA 105) IDE treeview entries are in wrong order
- fixed: muted spurious debug console output entries of '~~~ changed history bookmark: '
- fixed: project save implementation now allows client to adjust the output path when save fails [ https://github.com//issues/1140 ]
- fixed: erroneous 'invalid PackingAlignment attribute' errors on some UDTs
- fixed: some auto-implemented OUT-only parameters were incorrectly implemented with IN-OUT semantics [ KarlSevenSeven, private ]
- fixed: newly added breakpoints sometimes not active until an edit is made to a source file
- improved: HISTORY panel is now persisted across sessions
- improved: HISTORY panel entries now show the full timestamp in the hover tooltip
- improved: HISTORY panel now logs when a form design is edited
- improved: HISTORY panel now removes associated entries when a file is deleted
- fixed: PackingAlignment attribute for UDTs is now correctly respected in generated Ax type libraries
- fixed: using public UDTs as types for parameters in Ax classes now works correctly (previously had an extra VT_PTR in the type library descriptor)