vb6 & vb.net comparison
-
VB6 is a muddled mess of a language which is saddled with oodles of quirks which were designed to make it somewhat compatible with QuickBasic and QBASIC, which were in turn designed to be compatible with the original IBM PC Cassette BASIC. Although it "looks" object-oriented, it lacks features like inheritance which are necessary to make real object-oriented programming possible. Further, as a result of its Cassette BASIC roots, many object methods have strange and bizarre variations in syntax which cannot be mimicked with user-defined functions. For example, to draw a box on the printer,
Printer.Line(10,10)-(20,20),0,BF
The use of two coordinate pairs, separated by a dash, and the use of the literal characters "BF" (block fill) without any string delimiter, are both perfectly fine syntax in an interpreted language (like Cassette Basic). They're not really any harder to parse than would be "LINE 10,10,20,20,0,2" (the "3" being "BF") and they're easier to read, but syntax line that makes it impossible to create a function that behaves like the "Line" function.
-
Take a look at this book. I have it and found it to be a pretty good resource for making the transition, if you haven't already. http://www.amazon.com/Book-Visual-Basic-2005-Developers/dp/1593270747/ref=sr_1_48?ie=UTF8&s=books&qid=1215014222&sr=8-48[^]
-
I think he gets the point!
-
The only similarities are that they both have "Visual Basic" in the title and the message box function is
MsgBox()
in both. :)The JZ wrote:
and the message box function is MsgBox() in both
Actually, the message box method in .NET is MessageBox.Show. The MsgBox method in VB.NET is just a wrapper for the MessageBox.Show method. Also, it's far from the only VB 6 leftover. VB.NET has a lot of wrappers with the same name as the VB 6 functions, that call the corresponding .NET method.
Despite everything, the person most likely to be fooling you next is yourself.
-
The JZ wrote:
and the message box function is MsgBox() in both
Actually, the message box method in .NET is MessageBox.Show. The MsgBox method in VB.NET is just a wrapper for the MessageBox.Show method. Also, it's far from the only VB 6 leftover. VB.NET has a lot of wrappers with the same name as the VB 6 functions, that call the corresponding .NET method.
Despite everything, the person most likely to be fooling you next is yourself.
-
hi jds1207 When i heard there was vb.net, i was in vb6, and i thought, no am happy here at vb6, and i was so Stuborn and never wanted to Listen when they told me about vb.net, One day i had a problem in my code and i post a thread in a forum and i wrote something like " i have problem inserting records in vb", well the person who answered me, thought i was using vb.net and he posted an example code of vb.net, am telling you it was Completely different and made sense than my vb6 code. Initialy i thought i was going to learn there and there and grasp the language, but i was lying to myself, i had to start learning the Language from Scratch , and till today i dont see vb6 come Closer to vb.net. The Syntex might look alike but they are Completely Different.
Vuyiswa Maseko, Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding VB.NET/SQL7/2000/2005 http://vuyiswamb.007ihost.com http://Ecadre.007ihost.com vuyiswam@tshwane.gov.za
-
hi jds1207 When i heard there was vb.net, i was in vb6, and i thought, no am happy here at vb6, and i was so Stuborn and never wanted to Listen when they told me about vb.net, One day i had a problem in my code and i post a thread in a forum and i wrote something like " i have problem inserting records in vb", well the person who answered me, thought i was using vb.net and he posted an example code of vb.net, am telling you it was Completely different and made sense than my vb6 code. Initialy i thought i was going to learn there and there and grasp the language, but i was lying to myself, i had to start learning the Language from Scratch , and till today i dont see vb6 come Closer to vb.net. The Syntex might look alike but they are Completely Different.
Vuyiswa Maseko, Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding VB.NET/SQL7/2000/2005 http://vuyiswamb.007ihost.com http://Ecadre.007ihost.com vuyiswam@tshwane.gov.za
Nevertheless, the transition from VB6 to VB.NET is easier than from being a non-programmer to VB6.
-
Nevertheless, the transition from VB6 to VB.NET is easier than from being a non-programmer to VB6.
you are Very Correct
Vuyiswa Maseko, Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding VB.NET/SQL7/2000/2005 http://vuyiswamb.007ihost.com http://Ecadre.007ihost.com vuyiswam@tshwane.gov.za
-
To start off their is no comparison :)
Regards, Thomas Stockwell Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Visit my homepage Oracle Studios Discounted or Free Software for Students: DreamSpark - downloads.channel8.msdn.com MSDN Academic Alliance - www.msdnaa.com