Why to complain, at least the errors are handled!
sirhegel
@sirhegel
Best posts made by sirhegel
Latest posts made by sirhegel
-
RE: Who said VB coders are careless?
-
RE: BlnEvtName = blnEvtName == false? true : false;
>I think it might indicate if another variable contains the name of an event or of something else.
This might indeed be the case. This is actually a brilliant idea; you do not have to explicitely define variable types, plus you can use less variables. You can define all variables as objects and use booleans, enums etc. to indicate what the variables will contain. This way you can even change the very purpose of any variable in run-time.
For example;
'Note that you do not have to define variable type, which is usually a PITA
Dim objValue
'Do not define variable type, since these variables can be reused somewhere else as some other data type
Dim blnObjValueContainsCustomerName = True
Dim blnObjValueContainsExcelApplication = False'Somewhere deep in the code where no man has gone before
If blnObjValueContainsCustomerName = True Then
txtCustomerName.Text = objValue.ToString
Else
If blnObjValueContainsExcelApplication = True Then
'Note that in this case the blnObjValueContainsCustomerName variable contains the worksheet object
blnObjValueContainsCustomerName.Save
blnObjValueContainsCustomerName.Close
objValue.Quit
End If
End If
-
RE: Dynamic Fusebox
What about this page? http://www.dynamicfusebox.com/future_rockstar.html
The "false latin" is excerpt from Lorem Ipsum.
-
RE: Paula's heritage
@ammoQ said:
In German (Voigtländer was founded in Vienna), "Brillant" means some kind of diamond (I think the english word for it is "brilliant cut")
Uhmmm... Well, what do you think "Brilliant" means in English, then? Why would anything be called brilliant, such as Paula Beans?
-
RE: Magic numbers, strings and exceptions
Instead of magic numbers the author should obviously have used an application setting to make sure that the application can easily be customized to be used on another planets and celestial objects.
-
RE: A huge collection of VB6 WTF's (Warning: Long post!)
@Treeki said:
@Ice^^Heat said:
What is the advantage of VB6 over VB.NET?
As far as I can see, nothing. I've tried VB2005, and immediately gave up. I'm not about to rewrite over half of my project just for the so-called advantages of .NET. I'm familiar with VB6, it works fine for me, and I ran into many problems when I tried to convert my program.
Have you ever heard about so-called object-oriented programming?
I would never ever return back to VB6, but unfortunately I still have to maintain my old VB6 applications and that is a true P.I.T.A.
-
RE: War on right clickers, tides have turned!
I don't get the point of this product. You could always hit ALT-PntsScrn, paste the image of the page to Word, print the word document, tape the document to a wooden table, flip the table over, put it on a scanner, scan the page and finally run it through OCR software to steal the text. No nerdy guru skills required.
-
RE: Is it Intellisense-abuse?
There is yet another good reason for referring to String.Empty instead of "". Whoever knows if Microsoft decides to change the very definition of an empty string in the future? Or if the empty string may be platform- or culture-specific. ;-)
-
RE: Visualize A Stable IDE
@djork said:
He's actually not the only one who sees VB in that light. sirhegel should have said "background compilation" instead of "syntax highlighting" though, but I think we all get the point.
http://www.codinghorror.com/blog/archives/000860.html
Great article, that was just exactly what I ment; sorry for mixing these (indeed obviously different) terms.
-
RE: Game Loops
@GettinSadda said:
Really?
Maybe you did not read the original post:
"forever loops are useful only when you have another loop that is nested between it"