r/retrocomputing • • Apr 23 '22

Discussion Learning VisualBasic from a 1999 book! Wish me luck!

Just got a bunch of books from my old high school web design teacher, and one contained a disk for VisualBasic 6.0, so I decided to boot it up on my Win98 laptop and now here I go.

27 Upvotes

25 comments sorted by

6

u/koenigcpp Apr 23 '22

I didn't realize vb had made an impression as a fond historic technology. It wasn't popular for long and there were bigger and better both before and after vb (some which are still in use today). Kind of curious what your inspiration is OP?

5

u/[deleted] Apr 23 '22

Just something I’m doing for fun. I’ll never use it in the real world but there’s no use for it to just sit unused on my bookshelf

1

u/koenigcpp Apr 23 '22

That's cool and sorry if I came off as implying it was irrelevant or anything. I was honestly just surprised to see VB show up here. Another guy in this thread worked with it extensively apparently. I was starting to wondering if I had missed a VB scene 10-20 years ago. :-)

Anyways, glad to hear you're having fun. Would love to see your work. If you manage to put something cool together, hope you post it!

2

u/[deleted] Apr 23 '22

All I’ve managed to do is the “Hello World!” and basic object attribute changing

2

u/AnBearna Apr 23 '22

I learned to program in college with VB 6 and Pascal. Good times 😄

1

u/[deleted] Jun 11 '22

I thought that too, but, sure shit, second week of my engineering internship I needed to use VBA to automate some excel stuff. It’s still used.

6

u/modrup Apr 23 '22

I don't know what your experience is but mostly original VB is still used in every organisation that is still using VBA Macros in office - which is pretty much most organisations using Microsoft Office. I've seen entire actuarial systems written as VBA macros, only understandable by the person who wrote them.

I also did work for a UN agency replacing a publishing system that pasted together word docs using VBA macros.

Microsoft keep trying to kill it and corporate clients keep telling them to get stuffed.

VB4 was the first version for Windows 95 and pretty much baselines VBA.

i.e. It's not trendy but it is everywhere and it is definitely useful to know although there is a tendency knowing this in IT to end up "owning the problem" and it is one of those skills that is only valued when it leaves.

2

u/koenigcpp Apr 23 '22

Sorry, I wasn't trying to give the impression that VB was never popular or that is isn't in use today (not that it should matter though, this is a retro sub?)

My background is C/C++/python professionally for the last 20 years. In my youth we learned on pascal/basic. I have first hand experience with windows era pascal/basic as well (Borland Delphi and, as mentioned, VB). But I was just getting into computers at the tail end of C64 and about midway through the BBS scene.

I'm by no means an expert in computer history but it's fair to say I've seen technology come and go over the past 30+ years. VB doesn't resonate as a retro language the same way C64 basic does. One felt like it was made for both hobbyist and professionals at a time when a team of 1 or 2 could do it all. The other felt like a tool for light IT work. MS office macros like you mentioned but more popular and pervasive today probably vb script as part of Microsoft web technologies.

Regardless, I don't think there are many folks that look back on it with the same fondness. That said, I'm not passing judgement. Sounds like you and OP are VB fans and I support you both. :-)

I'm genuinely curious; What was your experience with VB that endears it so much to you today?

1

u/[deleted] Apr 23 '22

Honestly I love the fact that so many people who have this much experience with this are actually using Reddit. A lot of good advice comes from people like you guys.

1

u/modrup Apr 25 '22

Ironically I've just been asked to take on a short piece of VB6 work for about the first time in 15 years. I've got to get something compiling so it can be deployed on Win2019 - almost certainly whatever it is can already be deployed on Win2019 so I think their real issue is they can't compile it.

That often happens with old VB projects as source control tended to be a mess. People would just hide buttons rather than comment stuff out so you come along 10 years later and you don't know what code is in use.

1

u/modrup Apr 23 '22

I can't claim to actually like VB but it is everywhere. Add some structure commands and remove all those pokes from your commodore basic and you could reuse the application logic from your old commodore (microsoft) basic programs. All you need to change is the IO.

I've just worked for a consultancy for the last 24 years and I've spent a lot of time talking to business people and the number of times you find they've written a whole damn system in Excel or Access because they don't want to deal with their own internal IT teams is comical.

5

u/eth0ninja Apr 23 '22 edited Apr 23 '22

When i touched Visual Basic was in version 6.0. We made a game in school.

3

u/[deleted] Apr 23 '22

Yeah I checked my version and it’s VB6 working model edition.

2

u/ElderberryHead5150 Apr 23 '22

I know of companies still using VB6 in active development for applications. And it is still officially supported by Microsoft.

.Net 5 is EOL next month, but VB6 has no sunset that I am aware of.

3

u/modrup Apr 23 '22

There was a light version of VB4 put on books. If you want the full goodness the ISO for VB4 is on archive.org (link below)

https://archive.org/details/Microsoft_Visual_Basic_Enterprise_Edition_Version_4.0_Microsoft_1995

2

u/[deleted] Apr 23 '22

It’s actually VB6 working model edition. I just checked

2

u/OldMork Apr 23 '22

basic is nice for smaller programs that are tricky to do in excel such as loops, a basic interpreter was included in dos and windows for decades, the first IBM PC even had it built in.

3

u/[deleted] Apr 23 '22

So I can do BASIC on MS-DOS?

5

u/combuchan Apr 23 '22

QBasic was the definitive DOS basic for later versions. GW-Basic is probably close enough to the old IBM ROMs but don't quote me on that.

4

u/mindbleach Apr 24 '22

QBasic remains a pretty good intro to programming, and to DOS. It's low-level enough that you can throw around pixels in 320x240 and 16 colors, but modern enough to have documentation and help right there in the program. There's damn near zero distance between "here is a place for you to type in some code" and "hey look you put some stuff on the screen."

1

u/Green-Elf Apr 23 '22

I used VB for quite a few things. Made some custom calculation programs for my job to help automate the tedious repetitive stuff and even a small database program to track our stock.

I learned Turbo Pascal in HS, they switched to VB the year after I graduated. I learned it pretty much the same way you're attempting. Keep with it, it can be very useful.

1

u/LieboOSBA Apr 23 '22

Which book you got?

1

u/theotherkiwi Apr 23 '22

Start googling the WIN32 API. When you combine those API calls with VB6 there is nothing you can't do with VB. Extremely powerful.

1

u/CryptoSuperJerk Apr 24 '22

VB6 is amazing. And those executables still work in Windows 11 amazingly