|
A subroutine is really a function returning void. That is how it is defined and linked in FORTRAN on all the platforms I've used.
If pigs could fly, just imagine how good their wings would taste!
- Harvey
|
|
|
|
|
I very rarely ... sorry, what did I come here for?
|
|
|
|
|
I would if anyone would talk to me.
|
|
|
|
|
I used VB6 for most of my programming life: self taught in 2002, 3 years at school (2004-2006) then 7 years at work (2012-2018).
It's been two years and a half since the last time I touched VB6 code.
Still on occasion my mind slips I still try to write VB code in C++. I hope someday I will stop writing
Do While
...
Loop
If ... Then and
For i = 0 To N
Pray for my soul.
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
Be strong. You'll get there!
When we give up an addiction to a dangerous substance - be it Tobacco, Heroin, or VB - you have to expect some minor lapses; we all have them.
The important thing to do is remember that you didn't slip back. You didn't reach for an ancient compiler to get your fix - you laughed at the impulse and corrected your behaviour.
We are all very proud of you!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
OriginalGriff wrote: You didn't reach for an ancient compiler to get your fix - you laughed at the impulse and corrected your behaviour.
Sometimes the temptation is strong. "But I have to automatize a simple task with a GUI, it is so easy with VB", "It's only a small program for my parents, what damaga could it do?".
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
I know, I know - we've all been there. But think of the effort you went through to get where you are - don't throw it away for a quick fix!
Remember, VB is a gateway language: you could end up coding in Python, or - gawd help us all - PHP ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
What about
On Error Goto label
|
|
|
|
|
This one is better - makes sure your program NEVER crashes:
On Error Resume Next
and it's much easier and shorter than
try
{
DoStuff();
}
catch
{
}
Anything that is unrelated to elephants is irrelephant Anonymous
- The problem with quotes on the internet is that you can never tell if they're genuine Winston Churchill, 1944
- Never argue with a fool. Onlookers may not be able to tell the difference. Mark Twain
|
|
|
|
|
TBH sometimes I do miss On Error Resume Next .
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
Ouch!
While I think most VB bashing is childish at best, that one is indeed an abomination.
|
|
|
|
|
Jörgen Andersson wrote: most VB bashing is childish at best It is
Jörgen Andersson wrote: that one is indeed an abomination
I spent a frakking week removing it from the whole codebase in my former workplace.
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
den2k88 wrote: I spent a frakking week removing it from the whole codebase in my former workplace.
Sounds like well spent time!
|
|
|
|
|
It was obviously the wrong thing, the software started crashing.
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
That too, not often but...
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
den2k88 wrote: Pray for my soul. Too late "O child of Satan".
|
|
|
|
|
den2k88 wrote: Pray for my soul.
VB programmers have souls?!
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
We do in fact have souls. Plural.
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
It might help to just taper off.
Last week, I wrote a script in VBScript to send an email. Didn't get the DT's or any other maladies.
Might have to do another one next year.
No worries, had my second shot over a month ago.
If you can keep your head while those about you are losing theirs, perhaps you don't understand the situation.
|
|
|
|
|
Why? The verbosity of the VB language family reduces the chance of nesting errors like the one that brought down AT&T's network in 2006. That outage was a code bug relating to a closing brace being on the wrong line.
|
|
|
|
|
Yes it does, though it is not enough. Can help if all the nests are of different kinds, but if they are for example 4 nested Ifs it won't help.
Good indentation and a tiny comment on the closing brace if the situation calls for it will solve anyway. Also VB constructs are similar to the K&R indentation
if (...) {
...
} compared to the better readable and less error prone Allman style
if (...)
{
...
}
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
den2k88 wrote: Pray for my soul.
What you need is an exorcism.
|
|
|
|
|
There is no dishonour in VB.COM!
I still wish I was writing code in Clarion for DOS which was current in 1991.
|
|
|
|
|
Funny how I was thinking the other day I keep using MsSqlServer where ever I go.. And today I stumbled on an article about MariaDB, apparently heir to MySql! (which I remember using quite successfully many years ago).
So I wonder.. any impression to share on MariaDB?
Does it support Entity Framework? Is it as fast as (or faster than) MsSqlServer? Good admin tool (like MSSMS)?
Anything else?
modified 31-Mar-21 1:30am.
|
|
|
|
|