Our implementations of the runtime functions get linked in as necessary. So if you make a call to MsgBox for example, your compiled EXE will include our implementation of MsgBox linked in to it just like an ordinary basic Sub/Function.
Printable View
Len/LenB are intrinsic in VB too; not in the runtime. At least the common one; there's also versions in the VBA dll that you can access with VBA.Len/LenB If you haven't checked it out, The trick's VB6 kernel mode driver shows some of what's built in and some of the limitations. It doesn't use the runtime at all; you have to manually remove it as a dependency.
But VarPtr is in the runtime. So you needed a workaround even for that (one exists, if you declare the InterlockedExchange API in a certain way, it functions the same as VarPtr).
No, not everything.
Here is a discussion how to figure out which one is implemented as intrinsic and you can even use different color in the Editor for intrinsics.
cheers,
</wqw>
Niya, is TB carefully and gently luring you back into the world of VB6? Can you see yourself coding again in that lovely language that you know so well?
Probably not. Don't get me wrong, I think TwinBASIC will be great and based on my experience with it, I would definitely recommend it. It is shaping up to be a highly competitive modern language. However, .Net already gives me almost everything I could ever want. There is just no reason for me to leave it.
There is one thing however, that TwinBASIC offers that .Net cannot, the ability to create dependency-free native code standard DLLs using a flavor of BASIC I'm highly familiar with. C is probably still the best language for writing standard DLLs but for relatively simple or higher level stuff, BASIC is more than adequate and I can get it done a lot faster.
Most of my coding in the VB6 world would still be mostly stuff on these forums and some stuff for our main POS application which is still written in VB6. But outside of that, most of the code I will be writing in the future will be .Net code. I would probably use TwinBASIC over C/C++ if a need to create standard Windows DLLs comes up in the future.
How To's and other articles about the twinBASIC language...
https://nolongerset.com/tag/twinbasic/
twinBASIC status update
twinBASIC Update: August 7, 2022
Highlights include a major compiler refactor to help reduce compiler memory usage and proposed support for multiple built-in rounding methods.
https://nolongerset.com/twinbasic-update-august-7-2022/
HOW TO: Install twinBASIC
The latest step-by-step instructions for installing twinBASIC
https://nolongerset.com/how-to-install-twinbasic/
twinBASIC status update
twinBASIC Update: August 14, 2022
Highlights include IDE memory optimizations, build size reductions, and a discussion about a potential extensibility library for the IDE.
https://nolongerset.com/twinbasic-up...ugust-14-2022/
twinBASIC IDE BETA 91 is now available.
Download from here... https://github.com/WaynePhillipsEA/twinbasic/releases
- Click on "Assets" for the latest release
- Download and Extract the ZIP file into a local folder
- Then run the twinBASIC.exe from that local folder.
How to install https://nolongerset.com/how-to-install-twinbasic/
twinBASIC IDE BETA 92 is now available.
Download from here... https://github.com/WaynePhillipsEA/twinbasic/releases
- Click on "Assets" for the latest release
- Download and Extract the ZIP file into a local folder
- Then run the twinBASIC.exe from that local folder
How to install https://nolongerset.com/how-to-install-twinbasic/
twinBASIC IDE BETA 93 is now available.
Download from here... https://github.com/WaynePhillipsEA/twinbasic/releases
- Click on "Assets" for the latest release
- Download and Extract the ZIP file into a local folder
- Then run the twinBASIC.exe from that local folder
How to install https://nolongerset.com/how-to-install-twinbasic/
twinBASIC IDE BETA 94 is now available.
Download from here... https://github.com/WaynePhillipsEA/twinbasic/releases
- Click on "Assets" for the latest release
- Download and Extract the ZIP file into a local folder
- Then run the twinBASIC.exe from that local folder
How to install https://nolongerset.com/how-to-install-twinbasic/
twinBASIC IDE BETA 95 is now available.
Download from here... https://github.com/WaynePhillipsEA/twinbasic/releases
- Click on "Assets" for the latest release
- Download and Extract the ZIP file into a local folder
- Then run the twinBASIC.exe from that local folder
How to install https://nolongerset.com/how-to-install-twinbasic/
twinBASIC IDE BETA 96 is now available.
Download from here... https://github.com/WaynePhillipsEA/twinbasic/releases
- Click on "Assets" for the latest release
- Download and Extract the ZIP file into a local folder
- Then run the twinBASIC.exe from that local folder
How to install https://nolongerset.com/how-to-install-twinbasic/
twinBASIC status update
twinBASIC Update: August 21, 2022
Highlights include IDE improvements, support for Excel events in COM addins, and a kernel-mode driver written in twinBASIC (yes, really).
https://nolongerset.com/twinbasic-up...ugust-21-2022/
twinBASIC IDE BETA 97 is now available.
Download from here... https://github.com/WaynePhillipsEA/twinbasic/releases
- Click on "Assets" for the latest release
- Download and Extract the ZIP file into a local folder
- Then run the twinBASIC.exe from that local folder
How to install https://nolongerset.com/how-to-install-twinbasic/
I know that there is a lot done and being done and that there are reasons why this is so but it feels a little disappointing that it is still not possible to import even the simplest imaginable vb6 form based project into tb.
vbrad,
This month I'm only tackling things that can realistically be achieved in an hour or two at a time, since my kids are off school and work time is in short supply, so I don't want to be starting something too deep. But rest assured, the UI stuff is top priority for September, and there will be a big push to get that work done (including the migration of forms).
I know it's frustrating, but please bear with me!
Goodness me. VBRad you are easily disappointed.
twinBASIC IDE BETA 98 is now available.
Download from here... https://github.com/WaynePhillipsEA/twinbasic/releases
- Click on "Assets" for the latest release
- Download and Extract the ZIP file into a local folder
- Then run the twinBASIC.exe from that local folder
How to install https://nolongerset.com/how-to-install-twinbasic/
HOW TO: Handle Excel Events in a twinBASIC COM Addin
You can now use twinBASIC to create a COM add-in for Excel that handles Excel Application events like NewWorkbook and WorkbookOpen.
https://nolongerset.com/handle-excel...-in-twinbasic/
Great to hear, thanks Wayne.
What you've achieved so far is nothing short of amazing.
As someone who works pretty much exclusively in vb6 form based applications, I am so looking forward to creating something simple in vb6 and being able to then open that in tb!
Thanks very much for your post, it means a lot.
twinBASIC IDE BETA 99 is now available.
Download from here... https://github.com/WaynePhillipsEA/twinbasic/releases
- Click on "Assets" for the latest release
- Download and Extract the ZIP file into a local folder
- Then run the twinBASIC.exe from that local folder
How to install https://nolongerset.com/how-to-install-twinbasic/
twinBASIC IDE BETA 100 is now available.
Download from here... https://github.com/WaynePhillipsEA/twinbasic/releases
- Click on "Assets" for the latest release
- Download and Extract the ZIP file into a local folder
- Then run the twinBASIC.exe from that local folder
How to install https://nolongerset.com/how-to-install-twinbasic/
twinBASIC IDE BETA 101 is now available.
Download from here... https://github.com/WaynePhillipsEA/twinbasic/releases
- Click on "Assets" for the latest release
- Download and Extract the ZIP file into a local folder
- Then run the twinBASIC.exe from that local folder
How to install https://nolongerset.com/how-to-install-twinbasic/
twinBASIC status update
twinBASIC Update: August 28, 2022
Highlights include improvements to code selector boxes in the IDE, IntelliSense improvements, and better support for "kernel mode" (i.e., device drivers).
https://nolongerset.com/twinbasic-up...ugust-28-2022/
twinBASIC IDE BETA 102 is now available.
Download from here... https://github.com/WaynePhillipsEA/twinbasic/releases
- Click on "Assets" for the latest release
- Download and Extract the ZIP file into a local folder
- Then run the twinBASIC.exe from that local folder
How to install https://nolongerset.com/how-to-install-twinbasic/
twinBASIC IDE BETA 103 is now available.
Download from here... https://github.com/WaynePhillipsEA/twinbasic/releases
- Click on "Assets" for the latest release
- Download and Extract the ZIP file into a local folder
- Then run the twinBASIC.exe from that local folder
How to install https://nolongerset.com/how-to-install-twinbasic/
twinBASIC IDE BETA 104 is now available.
Download from here... https://github.com/WaynePhillipsEA/twinbasic/releases
- Click on "Assets" for the latest release
- Download and Extract the ZIP file into a local folder
- Then run the twinBASIC.exe from that local folder
How to install https://nolongerset.com/how-to-install-twinbasic/
twinBASIC IDE BETA 105 is now available.
Download from here... https://github.com/WaynePhillipsEA/twinbasic/releases
- Click on "Assets" for the latest release
- Download and Extract the ZIP file into a local folder
- Then run the twinBASIC.exe from that local folder
How to install https://nolongerset.com/how-to-install-twinbasic/
twinBASIC IDE BETA 106 is now available.
Download from here... https://github.com/WaynePhillipsEA/twinbasic/releases
- Click on "Assets" for the latest release
- Download and Extract the ZIP file into a local folder
- Then run the twinBASIC.exe from that local folder
How to install https://nolongerset.com/how-to-install-twinbasic/
twinBASIC IDE BETA 107 is now available.
Download from here... https://github.com/WaynePhillipsEA/twinbasic/releases
- Click on "Assets" for the latest release
- Download and Extract the ZIP file into a local folder
- Then run the twinBASIC.exe from that local folder
How to install https://nolongerset.com/how-to-install-twinbasic/
Is there some sort of "import" feature of TB to import VB6 projects? Or is there a guide to "convert" a VB6 project to TB without completely rewriting it?