Your favorite Visual Basic 6.0 tools and tips [closed]
Enable mouse wheel in VB6: Microsoft:enable the mouse scroll wheel
Enable mouse wheel in VB6: Microsoft:enable the mouse scroll wheel
I got tripped up by this little “feature” recently and wanted to raise awareness of some of the issues surrounding the IsDate function in VB and VBA. The Simple Case As you’d expect, IsDate returns True when passed a Date data type and False for all other data types except Strings. For Strings, IsDate returns … Read more
Please see edits below! For Each edits also added below under Edit2 More edits about ForEach and Collections at Edit3 One last edit about ForEach and Collections at Edit4 A final note about iteration behavior at Edit5 Part of the subtlety of this odd behavior in the semantics of variant evaluation when used as a … Read more
Folks on the VB6 newsgroup report they have managed to get it working on Windows 7. There’s this step-by-step guide on how to install the IDE on Windows 7 (including 64 bit). If that doesn’t work (scrapes barrel) try this old tip about persuading the install not to install the Java VM? Link is now … Read more
From the MSDN: You are not required to use the Call keyword when calling a procedure. However, if you use the Call keyword to call a procedure that requires arguments, argumentlist must be enclosed in parentheses. If you omit the Call keyword, you also must omit the parentheses around argumentlist. If you use either Call … Read more
The problem has been resolved by running the following in elevated command prompt: cd C:\Windows\SysWOW64\ regtlib msdatsrc.tlb This also helped with other older .ocx files, like Graph32.ocx and Threed32.ocx
VB6 was designed to be easy Use If str = “” Then ‘ uninitialised, null or empty “” Strings are automatically initialized to [edit] a null string. The null string is vbNullString. But don’t worry about null strings. A VB6 null string is indistinguishable from an empty string “” for (almost) any string manipulation.
In VB6, you can specify that you want errors to be handled by particular code later in the routine: Sub Bar() On Error Goto MyHandler … …some code that throws an error… … Exit Sub MyHandler: …some error handler code (maybe pops up a dialog) End Sub It may be the case, however, that the … Read more
I’d say they’re at risk, because the OS and hardware will evolve out from under them. You can run Visual Basic 6.0 on Windows XP, but even that’s close to the end of its life (it keeps being revived on its death bed). Those Cobol applications still live because the mainframes they run on aren’t … Read more
You can try setting the compatibility of your VB6 project. It is clearly explained here: http://www.techrepublic.com/article/demystifying-version-compatibility-settings-in-visual-basic/ Maybe the change in the associated GUID causes the pdb mismatch.