|
-
Aug 13th, 2004, 08:25 AM
#1
Thread Starter
PowerPoster
What can you tell me about the difference
between VB and VB.net? I have experience with VB6, and also with other OOLs such as Java, but I've never touched .net at all. Any warnings, advice, pointers (did I say pointers ? ACK!), you'd care to pass on, like basic structural and syntactic differences? Thanks in advance.
-
Aug 13th, 2004, 08:29 AM
#2
Member
Google
-
Aug 13th, 2004, 08:53 AM
#3
Fanatic Member
.Net looks cooler on your resume.
-
Aug 13th, 2004, 09:14 AM
#4
On a more serious note, .NET is much more Object Oriented than VB6. There's additions to the language, such as tha Try...Catch...Finaly block for error handling. Everything is now an object, no more using Set. Numerical alignment is now in line with other languages. What was an Integer in VB6 is now a Short, and waht used to be Long is now Int.
There's a number of changes, but nothing so Earth shattering that you couldn't pick it up fairly easily. One of the biggest changes I've seen people have problems with comes when dealing with forms. You used to be be able to create a form in the project and just use it directly. Form1.Caption ="My Caption".... now, you have to create an instance of the form before you can use it. Dim frm1 As Form1 .... frm1 = New Form1 ... frm1.Caption = 'My Caption"
TG
-
Aug 13th, 2004, 09:20 AM
#5
Fanatic Member
-
Aug 13th, 2004, 09:39 AM
#6
Thread Starter
PowerPoster
Ah, that's too bad. That's what I find annoying about other OOLs. Use objects when it's more convenient, but sometimes making a simple method that should be ubiquitous, into a whole class that must be instantiated is just a pointless pain. I suppose there's a timer class now too? Does .net require over-riding methods that you're not using like Java?
-
Aug 13th, 2004, 09:41 PM
#7
Fanatic Member
.net is java-like. you can also create static methods with regards to non-instantiating objects. like System.out.println() and console.writeline(). writeline() and println() are static methods. need not to be instantiated. it offers pure oop. overriding, overloading. blah blah. like java. though it has overrides/overloads, blah blah again. hehehe.
-
Aug 16th, 2004, 12:29 AM
#8
Originally posted by DUNSEL
Ah, that's too bad. That's what I find annoying about other OOLs. Use objects when it's more convenient, but sometimes making a simple method that should be ubiquitous, into a whole class that must be instantiated is just a pointless pain. I suppose there's a timer class now too? Does .net require over-riding methods that you're not using like Java?
Look at it this way:
VB.NET is like Java in many ways, except that it pwnz Java and could use it to wipe my room's floor.
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
|