-
Apr 6th, 2012, 07:06 AM
#41
Re: !! About the new type of Single Language MSDN that I am making for Microsoft !!
Can we get back to the OP, in which I am trying to work towards???
Not really... because none of us have a clue what you're talking about. What is it? In plain English.
The best argument against democracy is a five minute conversation with the average voter - Winston Churchill
Hadoop actually sounds more like the way they greet each other in Yorkshire - Inferrd
-
Apr 6th, 2012, 07:14 AM
#42
Re: !! About the new type of Single Language MSDN that I am making for Microsoft !!
It looks like you're making an ActiveX control. Are you trying to pass it off as a new language?
Everyone reading this thread is puzzled.
In case you're competing with the AI thread, you're far from getting there.
moti's a seasoned troll and you've nothing on him.
Everything that has a computer in will fail. Everything in your life, from a watch to a car to, you know, a radio, to an iPhone, it will fail if it has a computer in it. They should kill the people who made those things.- 'Woz'
save a blobFileStreamDataTable To Text Filemy blog
-
Apr 6th, 2012, 02:05 PM
#43
Re: !! About the new type of Single Language MSDN that I am making for Microsoft !!
There aren't too many threads that require me to take an asprin after reading, but this was sure one of them...
-
Apr 6th, 2012, 11:42 PM
#44
Thread Starter
PowerPoster
Re: !! About the new type of Single Language MSDN that I am making for Microsoft !!
--That makes two or more of us...
However it was an ActiveX Control but then I just rewrote to a Form, instead and then working from there. Also I wrote it into my IDE, and then working as an Express and Ultimate Editions of it, at the same time. Is this really neccessary, to do or not???
I have a huge free products range, of computer software in which you can download using any kind of 64-Bit Web Browser. Also there is coming a Social Networking section that I am making on my Website...
|Ambra Productions Inc. | The Black Sun Society | The Black Shield | Ambra College | Church of the Black Sun | Ambra Productions Inc's Homepage | Boomtick Event's Venues: Ambar Nightclub, Jack Rabbit Slim's, Villa Nightclub and Lucy's Bar | Pasta Ambra | Fish Feast Company | Wallet Wizard | Ambrose Liquor | Ambar Tavern | Ambra University |
Do you wish to do unpaid work for me??? If so, the PM me on this Forum, and then we can get to work, programming for the future of computers go by the name of ThEiMp. This is my ghost writers name. Also my nickname, means that I am: The Imperial of the Technology Industry, so then to make it really short, I just then wrote: The Imp, which is where I get the nickname from...
-
Apr 6th, 2012, 11:49 PM
#45
Thread Starter
PowerPoster
Re: !! About the new type of Single Language MSDN that I am making for Microsoft !!
Actually why not download following the link in my signature: "QuickDirector Express" in the section under: "QuickDirector Stuff"...
I have a huge free products range, of computer software in which you can download using any kind of 64-Bit Web Browser. Also there is coming a Social Networking section that I am making on my Website...
|Ambra Productions Inc. | The Black Sun Society | The Black Shield | Ambra College | Church of the Black Sun | Ambra Productions Inc's Homepage | Boomtick Event's Venues: Ambar Nightclub, Jack Rabbit Slim's, Villa Nightclub and Lucy's Bar | Pasta Ambra | Fish Feast Company | Wallet Wizard | Ambrose Liquor | Ambar Tavern | Ambra University |
Do you wish to do unpaid work for me??? If so, the PM me on this Forum, and then we can get to work, programming for the future of computers go by the name of ThEiMp. This is my ghost writers name. Also my nickname, means that I am: The Imperial of the Technology Industry, so then to make it really short, I just then wrote: The Imp, which is where I get the nickname from...
-
Apr 10th, 2012, 03:47 PM
#46
Re: !! About the new type of Single Language MSDN that I am making for Microsoft !!
Originally Posted by ThEiMp
Actually why not download following the link in my signature: "QuickDirector Express" in the section under: "QuickDirector Stuff"...
404 page not found
-
Apr 10th, 2012, 04:58 PM
#47
Re: !! About the new type of Single Language MSDN that I am making for Microsoft !!
Last edited by dilettante; Apr 11th, 2012 at 04:42 PM.
Reason: grr, how did https get in there?
-
Apr 10th, 2012, 08:12 PM
#48
Thread Starter
PowerPoster
Re: !! About the new type of Single Language MSDN that I am making for Microsoft !!
-- Thanks for the Input$, I am going to check it out right about now!!
I have a huge free products range, of computer software in which you can download using any kind of 64-Bit Web Browser. Also there is coming a Social Networking section that I am making on my Website...
|Ambra Productions Inc. | The Black Sun Society | The Black Shield | Ambra College | Church of the Black Sun | Ambra Productions Inc's Homepage | Boomtick Event's Venues: Ambar Nightclub, Jack Rabbit Slim's, Villa Nightclub and Lucy's Bar | Pasta Ambra | Fish Feast Company | Wallet Wizard | Ambrose Liquor | Ambar Tavern | Ambra University |
Do you wish to do unpaid work for me??? If so, the PM me on this Forum, and then we can get to work, programming for the future of computers go by the name of ThEiMp. This is my ghost writers name. Also my nickname, means that I am: The Imperial of the Technology Industry, so then to make it really short, I just then wrote: The Imp, which is where I get the nickname from...
-
Apr 10th, 2012, 08:16 PM
#49
Thread Starter
PowerPoster
Re: !! About the new type of Single Language MSDN that I am making for Microsoft !!
The Link is now Refreshed, Relinked and then it works right about now, in deed. That was a few very intense moments, working out what was wrong. I had a space in the link feeder on the Forum Signature!! I didn't realise that, part of the fact...
I have a huge free products range, of computer software in which you can download using any kind of 64-Bit Web Browser. Also there is coming a Social Networking section that I am making on my Website...
|Ambra Productions Inc. | The Black Sun Society | The Black Shield | Ambra College | Church of the Black Sun | Ambra Productions Inc's Homepage | Boomtick Event's Venues: Ambar Nightclub, Jack Rabbit Slim's, Villa Nightclub and Lucy's Bar | Pasta Ambra | Fish Feast Company | Wallet Wizard | Ambrose Liquor | Ambar Tavern | Ambra University |
Do you wish to do unpaid work for me??? If so, the PM me on this Forum, and then we can get to work, programming for the future of computers go by the name of ThEiMp. This is my ghost writers name. Also my nickname, means that I am: The Imperial of the Technology Industry, so then to make it really short, I just then wrote: The Imp, which is where I get the nickname from...
-
Apr 10th, 2012, 11:43 PM
#50
Re: !! About the new type of Single Language MSDN that I am making for Microsoft !!
Originally Posted by ThEiMp
That was a few very intense moments, working out what was wrong. I had a space in the link
I hate it when that happens! So stressful!
-
Apr 11th, 2012, 09:22 AM
#51
Thread Starter
PowerPoster
Re: !! About the new type of Single Language MSDN that I am making for Microsoft !!
-- hehe := Same here ,, at least my machine didn't blow up this time. Only joking...
I have a huge free products range, of computer software in which you can download using any kind of 64-Bit Web Browser. Also there is coming a Social Networking section that I am making on my Website...
|Ambra Productions Inc. | The Black Sun Society | The Black Shield | Ambra College | Church of the Black Sun | Ambra Productions Inc's Homepage | Boomtick Event's Venues: Ambar Nightclub, Jack Rabbit Slim's, Villa Nightclub and Lucy's Bar | Pasta Ambra | Fish Feast Company | Wallet Wizard | Ambrose Liquor | Ambar Tavern | Ambra University |
Do you wish to do unpaid work for me??? If so, the PM me on this Forum, and then we can get to work, programming for the future of computers go by the name of ThEiMp. This is my ghost writers name. Also my nickname, means that I am: The Imperial of the Technology Industry, so then to make it really short, I just then wrote: The Imp, which is where I get the nickname from...
-
Apr 12th, 2012, 09:19 AM
#52
Re: !! About the new type of Single Language MSDN that I am making for Microsoft !!
Posting in an epic thread
-
Apr 12th, 2012, 07:39 PM
#53
Thread Starter
PowerPoster
Re: !! About the new type of Single Language MSDN that I am making for Microsoft !!
-- hehe ,, yes it really is, isn't it???
I have a huge free products range, of computer software in which you can download using any kind of 64-Bit Web Browser. Also there is coming a Social Networking section that I am making on my Website...
|Ambra Productions Inc. | The Black Sun Society | The Black Shield | Ambra College | Church of the Black Sun | Ambra Productions Inc's Homepage | Boomtick Event's Venues: Ambar Nightclub, Jack Rabbit Slim's, Villa Nightclub and Lucy's Bar | Pasta Ambra | Fish Feast Company | Wallet Wizard | Ambrose Liquor | Ambar Tavern | Ambra University |
Do you wish to do unpaid work for me??? If so, the PM me on this Forum, and then we can get to work, programming for the future of computers go by the name of ThEiMp. This is my ghost writers name. Also my nickname, means that I am: The Imperial of the Technology Industry, so then to make it really short, I just then wrote: The Imp, which is where I get the nickname from...
-
Apr 13th, 2012, 02:43 AM
#54
Re: !! About the new type of Single Language MSDN that I am making for Microsoft !!
-
Apr 13th, 2012, 08:17 AM
#55
Thread Starter
PowerPoster
Re: !! About the new type of Single Language MSDN that I am making for Microsoft !!
-- So right about now. Getting back to the OP...
Has anyone been able to download my products and if they work, please tell me if they do so. If they don't work, please tell me and then I will then be able to get on to it right, at some point in time...
I have a huge free products range, of computer software in which you can download using any kind of 64-Bit Web Browser. Also there is coming a Social Networking section that I am making on my Website...
|Ambra Productions Inc. | The Black Sun Society | The Black Shield | Ambra College | Church of the Black Sun | Ambra Productions Inc's Homepage | Boomtick Event's Venues: Ambar Nightclub, Jack Rabbit Slim's, Villa Nightclub and Lucy's Bar | Pasta Ambra | Fish Feast Company | Wallet Wizard | Ambrose Liquor | Ambar Tavern | Ambra University |
Do you wish to do unpaid work for me??? If so, the PM me on this Forum, and then we can get to work, programming for the future of computers go by the name of ThEiMp. This is my ghost writers name. Also my nickname, means that I am: The Imperial of the Technology Industry, so then to make it really short, I just then wrote: The Imp, which is where I get the nickname from...
-
Apr 13th, 2012, 08:51 AM
#56
Thread Starter
PowerPoster
Re: !! About the new type of Single Language MSDN that I am making for Microsoft !!
Well seeing that this is inside the General ChitChat Forum, I am going to ask: Does anyone Like or Dislike my Member Signature on this Forum??? I have been able to remove all of the Compiled Coded Internet Links, therefore it is now totally safe for people to use also there is a compiled section of the Webpage. But then I cannot let loose all of my Source Code, then. But that is my way of thinking, anyway...
I have a huge free products range, of computer software in which you can download using any kind of 64-Bit Web Browser. Also there is coming a Social Networking section that I am making on my Website...
|Ambra Productions Inc. | The Black Sun Society | The Black Shield | Ambra College | Church of the Black Sun | Ambra Productions Inc's Homepage | Boomtick Event's Venues: Ambar Nightclub, Jack Rabbit Slim's, Villa Nightclub and Lucy's Bar | Pasta Ambra | Fish Feast Company | Wallet Wizard | Ambrose Liquor | Ambar Tavern | Ambra University |
Do you wish to do unpaid work for me??? If so, the PM me on this Forum, and then we can get to work, programming for the future of computers go by the name of ThEiMp. This is my ghost writers name. Also my nickname, means that I am: The Imperial of the Technology Industry, so then to make it really short, I just then wrote: The Imp, which is where I get the nickname from...
-
Apr 13th, 2012, 09:29 AM
#57
Re: !! About the new type of Single Language MSDN that I am making for Microsoft !!
I tried going to your main page which worked but doesn't contain anything useful except the links at the top. Unfortunately, every link returns a 404 page not found error so there's not much to look at at the moment.
The best argument against democracy is a five minute conversation with the average voter - Winston Churchill
Hadoop actually sounds more like the way they greet each other in Yorkshire - Inferrd
-
Apr 13th, 2012, 10:21 AM
#58
Re: !! About the new type of Single Language MSDN that I am making for Microsoft !!
Originally Posted by ThEiMp
Well seeing that this is inside the General ChitChat Forum, I am going to ask: Does anyone Like or Dislike my Member Signature on this Forum??? I have been able to remove all of the Compiled Coded Internet Links, therefore it is now totally safe for people to use also there is a compiled section of the Webpage. But then I cannot let loose all of my Source Code, then. But that is my way of thinking, anyway...
Dangit! What's with polls lately??? why must ti be one way or the other? where's the apathy option? What if I neither like nor dislike it?? Ugh... you polsters are all alike. Bah!
-tg
-
Apr 13th, 2012, 12:47 PM
#59
Re: !! About the new type of Single Language MSDN that I am making for Microsoft !!
Originally Posted by FunkyDexter
(though I'm not really sure what you mean by "single")
Originally Posted by Shaggy Hiker
Apparently, it means single as in not married, since it is clearly meant to mate up with some other language.
That should be added to webster's dictionary.
-
Apr 13th, 2012, 01:00 PM
#60
Thread Starter
PowerPoster
Re: !! About the new type of Single Language MSDN that I am making for Microsoft !!
Originally Posted by FunkyDexter
I tried going to your main page which worked but doesn't contain anything useful except the links at the top. Unfortunately, every link returns a 404 page not found error so there's not much to look at at the moment.
I'm working on the Webpage, right now even...
I have a huge free products range, of computer software in which you can download using any kind of 64-Bit Web Browser. Also there is coming a Social Networking section that I am making on my Website...
|Ambra Productions Inc. | The Black Sun Society | The Black Shield | Ambra College | Church of the Black Sun | Ambra Productions Inc's Homepage | Boomtick Event's Venues: Ambar Nightclub, Jack Rabbit Slim's, Villa Nightclub and Lucy's Bar | Pasta Ambra | Fish Feast Company | Wallet Wizard | Ambrose Liquor | Ambar Tavern | Ambra University |
Do you wish to do unpaid work for me??? If so, the PM me on this Forum, and then we can get to work, programming for the future of computers go by the name of ThEiMp. This is my ghost writers name. Also my nickname, means that I am: The Imperial of the Technology Industry, so then to make it really short, I just then wrote: The Imp, which is where I get the nickname from...
-
Apr 15th, 2012, 09:59 AM
#61
Re: !! About the new type of Single Language MSDN that I am making for Microsoft !!
I like your website, but I think each page should have music when it loads. That will make it even better.
Thanks
-
Apr 15th, 2012, 06:42 PM
#62
Thread Starter
PowerPoster
Re: !! About the new type of Single Language MSDN that I am making for Microsoft !!
-- Actually, I'm working on a Splash Screen for when it loads the screen, so then that could be where I add the music, cool!! Thanks for the Input$...
I have a huge free products range, of computer software in which you can download using any kind of 64-Bit Web Browser. Also there is coming a Social Networking section that I am making on my Website...
|Ambra Productions Inc. | The Black Sun Society | The Black Shield | Ambra College | Church of the Black Sun | Ambra Productions Inc's Homepage | Boomtick Event's Venues: Ambar Nightclub, Jack Rabbit Slim's, Villa Nightclub and Lucy's Bar | Pasta Ambra | Fish Feast Company | Wallet Wizard | Ambrose Liquor | Ambar Tavern | Ambra University |
Do you wish to do unpaid work for me??? If so, the PM me on this Forum, and then we can get to work, programming for the future of computers go by the name of ThEiMp. This is my ghost writers name. Also my nickname, means that I am: The Imperial of the Technology Industry, so then to make it really short, I just then wrote: The Imp, which is where I get the nickname from...
-
Apr 16th, 2012, 06:16 AM
#63
Re: !! About the new type of Single Language MSDN that I am making for Microsoft !!
Unfortunately this
CodeBank Page: Coming Really Soon...
means I'm not going to try out your stuff. Don't get me wrong, I can see loads of perfectly good reasons why people don't like to share their code (the obvious one being that you don't want anyone to steal it) but the flip side for people like me is that you're essentially asking me to install something on my machine with absolutely no way of knowing it's safe to do so. It could be anything. I've got all sorts of stuff on my machine I can't afford to lose so the risk's just too great, even if I trust you.
If you can find a way of providing that assurance without exposing your code I'd be happy to try stuff out. I can't think of a way of providing that assurance without seeing the code though.
The best argument against democracy is a five minute conversation with the average voter - Winston Churchill
Hadoop actually sounds more like the way they greet each other in Yorkshire - Inferrd
-
Apr 16th, 2012, 06:22 AM
#64
Thread Starter
PowerPoster
Re: !! About the new type of Single Language MSDN that I am making for Microsoft !!
Debug the EXE file, with an External Debugger but then you have to run it on some kind of machine...
I have a huge free products range, of computer software in which you can download using any kind of 64-Bit Web Browser. Also there is coming a Social Networking section that I am making on my Website...
|Ambra Productions Inc. | The Black Sun Society | The Black Shield | Ambra College | Church of the Black Sun | Ambra Productions Inc's Homepage | Boomtick Event's Venues: Ambar Nightclub, Jack Rabbit Slim's, Villa Nightclub and Lucy's Bar | Pasta Ambra | Fish Feast Company | Wallet Wizard | Ambrose Liquor | Ambar Tavern | Ambra University |
Do you wish to do unpaid work for me??? If so, the PM me on this Forum, and then we can get to work, programming for the future of computers go by the name of ThEiMp. This is my ghost writers name. Also my nickname, means that I am: The Imperial of the Technology Industry, so then to make it really short, I just then wrote: The Imp, which is where I get the nickname from...
-
Apr 16th, 2012, 06:29 AM
#65
Thread Starter
PowerPoster
Re: !! About the new type of Single Language MSDN that I am making for Microsoft !!
Here is some of Source Code, it's the CodeWindow Form and also the MSDN Library. Also included is the MSDN Documents that appear inside the MSDN Console...
-- Please note: When I say Source Code and MSDN Library, I am refering to the one that I am going to GIVE to Microsoft...
I have a huge free products range, of computer software in which you can download using any kind of 64-Bit Web Browser. Also there is coming a Social Networking section that I am making on my Website...
|Ambra Productions Inc. | The Black Sun Society | The Black Shield | Ambra College | Church of the Black Sun | Ambra Productions Inc's Homepage | Boomtick Event's Venues: Ambar Nightclub, Jack Rabbit Slim's, Villa Nightclub and Lucy's Bar | Pasta Ambra | Fish Feast Company | Wallet Wizard | Ambrose Liquor | Ambar Tavern | Ambra University |
Do you wish to do unpaid work for me??? If so, the PM me on this Forum, and then we can get to work, programming for the future of computers go by the name of ThEiMp. This is my ghost writers name. Also my nickname, means that I am: The Imperial of the Technology Industry, so then to make it really short, I just then wrote: The Imp, which is where I get the nickname from...
-
Apr 16th, 2012, 09:42 AM
#66
Re: !! About the new type of Single Language MSDN that I am making for Microsoft !!
I suppose I'm late to the party, but this "new VB" that you were referring to... I think it came out already. It's called "VB.NET" and it's been around for... only 10 years now, I think?
Anyway, subscribed!
-
Apr 16th, 2012, 01:22 PM
#67
Re: !! About the new type of Single Language MSDN that I am making for Microsoft !!
Damn, I've no longer got VB6 installed and can't find my old disk. I could have sworn I still had it. Anyway, I downloaded your stuff and opened it up in notepad (boy that took me back) and I think I can start to understand what you're trying to do.
Essentially, you seem to be writing an alternative IDE that's got some extra features in, so it'll create place holders for subs automatically and it's got some winsock connecivity built in, that sort of thing. Is that right? If so I applaud the effort but I do think you're going the hard way about it. You've got an awful lot of code there that just mimics stuff that was built into Visual Studio already, the code colouration for example. That's alot of effort when you could have just written add ins for Visual Studio, getting all of it's functionality for free while adding your own features on top.
If you're open to some criticism on your coding style, two things jumped out at me. 1. Alot of your variable are declared at form level when they're only used within a single method. You should always declare variables at the lowest scope possible. 2. You've got at least one 'On Error Resume Next' in there. Get rid of it and handle your errors properly.
The best argument against democracy is a five minute conversation with the average voter - Winston Churchill
Hadoop actually sounds more like the way they greet each other in Yorkshire - Inferrd
-
Apr 16th, 2012, 02:45 PM
#68
Re: !! About the new type of Single Language MSDN that I am making for Microsoft !!
Originally Posted by FunkyDexter
2. You've got at least one 'On Error Resume Next' in there. Get rid of it and handle your errors properly.
It's VB6, so THAT's not gonna happen. On Error Resume Next was problematic back then, but none of the alternatives were all that good, either. It would be the same as quietly absorbing an exception in .NET, which is occasionally even the right thing to do.
My usual boring signature: Nothing
-
Apr 16th, 2012, 04:42 PM
#69
Re: !! About the new type of Single Language MSDN that I am making for Microsoft !!
NNNNNNNNnnnnnnnnnnooooooooooooooooooo!!!!!
It's not absorbing an error; it's absorbing all errors. Don't get me wrong, I can see the argument for absorbing the occasional error you genuinely know you can ignore but you ought to know what the error is first. Absorbing a "File Not Open" Error when closing a file would be a good example. But On Error Resume Next is saying, I don't care what error occurs, I'm going to ignore it. The very least you should do in VB6 is use On Error Goto, check the error code and issue a resume next from the error handler if it's an error you really don't care about.
And just 'cause I can't resist it:-
There was an On Error Resume Next
Which made some developers quite vexed
Shaggy's not bothered
but the errors hovered
and came back to haunt Funky Dext...
... er
The best argument against democracy is a five minute conversation with the average voter - Winston Churchill
Hadoop actually sounds more like the way they greet each other in Yorkshire - Inferrd
-
Apr 16th, 2012, 04:59 PM
#70
Re: !! About the new type of Single Language MSDN that I am making for Microsoft !!
While hiding all errors in a go
Causes trouble and hides bugs also
The point of my text
Which was missed by vexed Dex
Was: Only hide those exceptions you know.
I can only think of one situation where quietly swallowing an exception made sense, but there IS that one situation: Exceptions raised by invalid UDP packets can typically be ignored.
My usual boring signature: Nothing
-
Apr 16th, 2012, 05:44 PM
#71
Re: !! About the new type of Single Language MSDN that I am making for Microsoft !!
Originally Posted by Shaggy Hiker
While hiding all errors in a go
Causes trouble and hides bugs also
The point of my text
Which was missed by vexed Dex
Was: Only hide those exceptions you know.
I can only think of one situation where quietly swallowing an exception made sense, but there IS that one situation: Exceptions raised by invalid UDP packets can typically be ignored.
Limerick +1. I should start answering everything like that.
-
Apr 16th, 2012, 05:58 PM
#72
Re: !! About the new type of Single Language MSDN that I am making for Microsoft !!
God this is such an epic thread
-
Apr 16th, 2012, 07:23 PM
#73
Re: !! About the new type of Single Language MSDN that I am making for Microsoft !!
Originally Posted by ThEiMp
-- Actually, I'm working on a Splash Screen for when it loads the screen, so then that could be where I add the music, cool!! Thanks for the Input$...
http://www.w3.org/QA/Tips/noClickHere
-
Apr 17th, 2012, 01:31 AM
#74
Re: !! About the new type of Single Language MSDN that I am making for Microsoft !!
Originally Posted by FunkyDexter
But On Error Resume Next is saying, I don't care what error occurs, I'm going to ignore it. The very least you should do in VB6 is use On Error Goto, check the error code and issue a resume next from the error handler if it's an error you really don't care about.
Well, you could do an inline error handling for the errors you expected, where the On Error Resume Next would be a perfectly justified way of handing errors. It's like executing a statement and then checking the error code or status code on the next line to check if the last statement executed without errors.
Sorry to post something serious. I am not entirely sure it's right to do that.
.
-
Apr 17th, 2012, 07:40 AM
#75
Re: !! About the new type of Single Language MSDN that I am making for Microsoft !!
Exceptions raised by invalid UDP packets can typically be ignored
I know absolutely nothing about that so can't really comment. Let me see if I can clarify where I'm coming from a bit because I'm not sure whether we're arguing the same point or not. I'll probably get the syntax wrong so bear with me.
This is obviously wrong:-
Code:
'Program starts Here
On Error Resume Next
...
'Loads of lines of code
That's just turning error handling off. I imagine we're probaly in agreement on that though.
This isn't as wrong but I would argue is still bad practice:-
Code:
...
On Error Goto MyHandler
'Various bits of code I'm handling correctly
...
On Error Resume Next 'Skip any errors because I don't care if the files already closed
File.Close
On Error Goto MyHandler
'More bit of code I'm handling correctly.
I used to come across that alot in my VB6 days but I still think it's bad because you don't actually know that the error being thrown is that the file is already closed. The error could be something completely different and this will carry on regardless. I guess there may be some situations where a particular line of code can only throw one type of error and you're happy to ignore it, but even then you don't know the underlying implementation won't change at some point.
I would argue that this is correct:0
Code:
On Error goto MyGeneralHandler
...Various Lines of code being correctly handled
On Error goto myFileCloseHandler
File.Close
On Error goto MyGeneralHandler
... more lines of code being correctly handled
MyFileCloseHandler:
If Error.code = "File Already Closed" 'Or whatever the error code for that was
Resume Next
MyGeneralHandler:
'Do whatever error handling you'd normally do here
Here you're making sure the error is the one you want to consume before you consume it. Having a separate handler may or may not be apropriate, depending on the situation, but the point is to check the error first and make sure it's the one you think it is.
Well, you could do an inline error handling for the errors you expected, where the On Error Resume Next would be a perfectly justified way of handing errors.
I've seen that argued a lot and disagree I'm afraid. It means your just ignoring any error you weren't expecting... and they're the really dangerous ones. I guess you could check for any error after every line of code but that seems awefully innefficient to me.
The Shaggy v Funky Rhyme Battle
Played out 'fore the VBF cattle
The puns were displaced
by formed rhymes in their place
But I aint got a final line that'll...
...scan correctly
Turns out I'm not very good at limericks. And I don't really think the VBFers are cattle but, hey, you try coming up with a rhyme for battle just after you've eaten lunch.
The best argument against democracy is a five minute conversation with the average voter - Winston Churchill
Hadoop actually sounds more like the way they greet each other in Yorkshire - Inferrd
-
Apr 17th, 2012, 07:54 AM
#76
Re: !! About the new type of Single Language MSDN that I am making for Microsoft !!
I'm in agreement with FD on this... I've seen cases were apps failed in a spectacular way because at the top was (correctly) the On Error Goto errHnadlerXYZ .... then in the middle of the routing someone snuck in an OERN ... to handle a specific event, then FAILED to reset the original error handler. Things became even more complicated as we're going through the error handler to find out what was going wrong, not knowing there was an OERN... it was justbad juju all around.
-tg
-
Apr 17th, 2012, 12:51 PM
#77
Re: !! About the new type of Single Language MSDN that I am making for Microsoft !!
In general, I too, agree on all those points. My position is this:
1) I know of one or two situations where that would be ok.
2) I didn't download the code in question, nor do I have the means to look at it, so I'm not going to.
Considering that #2 is True, I can't categorically state whether the practice in this case is wrong. However, this part is certainly true:
3) I can probably find a nit to pick with just about anything.
As #3 is clearly true, I think I shall say no more about it other that this: It is a very rare situation where it is acceptable to quietly swallow an exception, but they do exist. Try as I might to find an errant situation where it would make sense to Catch as exception...End Try.
Funky D called VB folks Cattle
He thought it to be idle prattle
It was not his end
To people, offend
So on him, I clearly won't tattle.
My usual boring signature: Nothing
-
Apr 17th, 2012, 02:06 PM
#78
Re: !! About the new type of Single Language MSDN that I am making for Microsoft !!
I can probably find a nit to pick with just about anything.
I'm willing to bet that's a particular problem by the end of a hiking trip.
Funky D called VB folks Cattle
He thought it to be idle prattle
It was not his end
To people, offend
So on him, I clearly won't tattle.
Show off
The best argument against democracy is a five minute conversation with the average voter - Winston Churchill
Hadoop actually sounds more like the way they greet each other in Yorkshire - Inferrd
-
Apr 17th, 2012, 04:37 PM
#79
Re: !! About the new type of Single Language MSDN that I am making for Microsoft !!
Originally Posted by FunkyDexter
I'm willing to bet that's a particular problem by the end of a hiking trip.
Nah, they've all drowned.
Show off
Quite!!
My usual boring signature: Nothing
-
Apr 17th, 2012, 06:33 PM
#80
Thread Starter
PowerPoster
Re: !! About the new type of Single Language MSDN that I am making for Microsoft !!
Gee sorry that I fell asleep, because of the members posting on my Thread!! This is the first night's sleep for about since Feburary '12!! I now usually sleep in the day time, not at night because of the time thing on this Forum...
I have a huge free products range, of computer software in which you can download using any kind of 64-Bit Web Browser. Also there is coming a Social Networking section that I am making on my Website...
|Ambra Productions Inc. | The Black Sun Society | The Black Shield | Ambra College | Church of the Black Sun | Ambra Productions Inc's Homepage | Boomtick Event's Venues: Ambar Nightclub, Jack Rabbit Slim's, Villa Nightclub and Lucy's Bar | Pasta Ambra | Fish Feast Company | Wallet Wizard | Ambrose Liquor | Ambar Tavern | Ambra University |
Do you wish to do unpaid work for me??? If so, the PM me on this Forum, and then we can get to work, programming for the future of computers go by the name of ThEiMp. This is my ghost writers name. Also my nickname, means that I am: The Imperial of the Technology Industry, so then to make it really short, I just then wrote: The Imp, which is where I get the nickname from...
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|