|
For some reason the compiler doesn't like "&&" and ";"
Silliness I tell you, just silliness.
|
|
|
|
|
you can use a ; simply put a ' in front of it, nobody will notice
|
|
|
|
|
There's an easy fix for those pesky compiler complaints. Start every file with this line:
On Error Resume Next
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
|
|
|
|
|
And do you have a point Or are you just moaning?
veni bibi saltavi
|
|
|
|
|
Ernst Stavro Blofeld wrote: Doing a little VB coding currently
Sorry for your luck.
Once you lose your pride the rest is easy.
In the end, only three things matter: how much you loved, how gently you lived, and how gracefully you let go of things not meant for you. – Buddha
|
|
|
|
|
VB is easier to code in so congrats.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
No time to grab your coat - just run for the door as fast as you can!
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
It is not easier to code in if it is not something you regularly do. So, I have to disagree.
|
|
|
|
|
I just had to remediate a few ASP pages...
One of them...this is so difficult to even think about...the writer made a new page every time the user had to navigate away from the current page for something.
Hard to explain...
OK.
Menu -> Login -> DoSomethingPage
but, if the user popped into the DoSomethingPage before logging in, he'd be prompted to log in first before continuing. Like this:
Menu -> DoSomethingPage -> Login2 -> DoSomethingPage
There are 127 ASP pages in this thing because of navigation nonsense like that.
So, yes, VB is easier to code. It also seems to attract people who should be asking if I'd like fries with that.
|
|
|
|
|
GenJerDan wrote: It also seems to attract people who should be asking if I'd like fries with that. Maybe. But I've seen a lot of bad C# coding too.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
RyanDev wrote: VB is easier to code in
In what universe?
If it's not broken, fix it until it is
|
|
|
|
|
Coder (Hired) wrote: In what universe? In the universe where typing less syntax is considered easier.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
RyanDev wrote: typing less syntax
- BC30124[^]: Property without a 'ReadOnly' or 'WriteOnly' specifier must provide both a 'Get' and a 'Set'.
- Repeating the property type in the property setter.
End If , End While , End Function , ...- Etc.
Looks like more syntax to me!
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Richard Deeming wrote: End If , End While , End Function
First off, Visual Studio adds those for you so you don't have to type them anyway.
Secondly, I've seen c# code that ended with a bunch of } and the coder had to comment with // end if and // end foreach etc, etc, because of so many } together you couldn't tell what was what.
Yet c# always needs a ";" and always needs (). You gave a couple of examples in VB but c# has extra syntax on nearly every single line. VB compiler does way more for you. Much less typing in VB.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
RyanDev wrote: First off, Visual Studio adds those for you so you don't have to type them anyway.
It's still a more verbose syntax.
RyanDev wrote: the coder had to comment with // end if and // end foreach etc,
Since you're using Visual Studio, there are extensions which will display that text for you without having to add the comment. For example:
http://vscommands.squaredinfinity.com/Features-CodeBlockEndTagger[^]
RyanDev wrote: Yet c# always needs a ";" and always needs ().
Consistent code is far more readable.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Richard Deeming wrote: It's still a more verbose syntax But less typing and way easier to read.
Richard Deeming wrote: Since you're using Visual Studio, there are extensions which will display that text for you without having to add the comment. For example: Now you're promoting additional verbosity?
Richard Deeming wrote: Consistent code is far more readable. Exactly.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
RyanDev wrote: way easier to read
Maybe if your a VB developer. If you spend all day working in C#, then C# is easier to read.
RyanDev wrote: Now you're promoting additional verbosity?
No. I'm saying that if you want to see what the closing brace refers to, you don't have to type comments to do it. Less typing, less code, less verbositudification.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Richard Deeming wrote: If you spend all day working in C#, then C# is easier to read. We'll have to agree to disagree.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
RyanDev wrote: VB is easier to code in
In what universe?
If it's not broken, fix it until it is
|
|
|
|
|
Hey - take that kind of remark to the SoapBox!
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "As far as we know, our computer has never had an undetected error." - Weisert | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Lucky you, I'm working on Delphi6 code.
|
|
|
|
|
MarkTJohnson wrote: Delphi6 WHY?!?!
The United States invariably does the right thing, after having exhausted every other alternative. -Winston Churchill
America is the only country that went from barbarism to decadence without civilization in between. -Oscar Wilde
Wow, even the French showed a little more spine than that before they got their sh*t pushed in.[^] -Colin Mullikin
|
|
|
|
|
|
If so, it must be a pretty old app. Delphi 6 was released in 2001.
The United States invariably does the right thing, after having exhausted every other alternative. -Winston Churchill
America is the only country that went from barbarism to decadence without civilization in between. -Oscar Wilde
Wow, even the French showed a little more spine than that before they got their sh*t pushed in.[^] -Colin Mullikin
|
|
|
|
|
VB 6 is older and there's still lots of that about.
Kevin
|
|
|
|