Click to See Complete Forum and Search --> : end or goto?
cwm
Jul 8th, 2001, 02:17 AM
does asp support a goto or end like visual basic does?
so i can just get out of the whole program if i want to...
chenko
Jul 8th, 2001, 07:45 AM
To stop the code running you use
Response.End
as for the GoTo, even if there was one I wouldnt use it.
cwm
Jul 8th, 2001, 06:36 PM
thank god, i was going crazy trying to get if statements to guide me to the end of the program.. thanks!
monte96
Jul 8th, 2001, 10:54 PM
Just a side note, be careful with the End statement in VB.. it literally just stops the program and leaves any memory allocated for objects that have not been set to Nothing.
csammis
Jul 9th, 2001, 03:19 PM
In VB you should be careful with Gotos too (beyond the obvious reasons), because in VB.NET they're gone completely! Muwhahahaha! :) Even the On Error statement is gone...I've been trying to some time to eliminate all Gotos from my code, and the only parts left are the "On Error Goto ohCrud"...that'll be easily replaced, though, with "Try Catch" clauses...I'm gonna love .NET ;)
JoshT
Jul 10th, 2001, 06:31 AM
Yeah, I like the "Try Catch" method of error handling a lot better. It makes more sense to me.
csammis
Jul 10th, 2001, 03:26 PM
Has anyone else noticed that VB.NET is what looks like M$'s attempt at a unified language, between Java C++ and VB?
JoshT
Jul 11th, 2001, 06:30 AM
I think MS saw Java as a threat, so they tried to control it - Visual J++ -> Sun lawsuit. When that didn't work, they create their own similiar technology and start hyping it as the next big thing.
csammis
Jul 11th, 2001, 01:34 PM
Fair enough, makes sense to me. What got me thinking was this:
At one point I was reading a book on C#, and then a book on VB.NET...both of them have taken on aspects of a unified language. Speaking specifically of VB.NET, it has picked up things such as Java's really heavy dot notation, and things like the way Java handles graphics:
Graphic g;
g = getGraphics();
g.drawText "Blah blah blah"
On the other major front, it has some of the more object-oriented aspects of C++, such as polymorphism and inheritance. VB.NET, like I said above, has gotten rid of goto (I think C# did too) and started using the Try-Catch statement for error handling. It also looks to be more powerful than previous versions of VB, but also more tightly integrated with the whole .NET subsystem and Windows as a whole.
It is beginning to look like MS is creating a unified language, which would work as easily for DirectX as it would for web browsing. Who knows, perhaps VB8 will be that unified language, but I hope not, for reasons I'm about to say... (before I go farther, let me say that I am speaking hypothetically, I'm not a psychic or a doomsayer (kinda), I just want to speak what I'm thinking and get other people's ideas:
[list=1]
This language, while being immensely powerful, would generate a fierce kind of overhead. How lightweight could it possibly be, packed with the beneficial functions (as MS sees them) of every major language? Yes, computers are being made with the capacity for GBs of RAM, but the art of computer programming is making something as small and yet as fast as possible...while sometimes it can't be avoided, no self-respecting programmer wants to create bloatware.
People screamed bloody murder when MS integrated Internet Explorer into their OS. They recently beat the charges of monopoly on that count, proving in their minds that they can do anything by circumventing the legal system. When (if) MS creates this language, it will force not for profit languages like Java down and out and put MS in the focus, with no place to run or hide. Not even Unix....
....because it was announced recently that MS was working with a *nix vendor (can't remember which one) to port C# to Unix/Linux. They're getting their hand in every pie they can reach...if *nix's fall to the MS touch, then there is literally no escape. Linux has been the outstanding "can't touch this" player in the Anti-MS arena. Apple has MS Office ported to it, so they're out.
[/list=1]
Well, that's my feelings on the subject (I'm long-winded)...post if you've got 'em :)
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.