Quiz for MM


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Page 1 of 13 12311 ... LastLast
Results 1 to 15 of 188

Thread: Quiz for MM

  1. #1
    Patrick Troughton Guest

    Quiz for MM


    Hi Mike,

    So you say that Visual Basic.NET is "a completely different language"? Hmm..really?
    Let's put that to the test, shall we?

    I have a little quiz for you. It's really simple. I'll give you a code sample
    and you tell me what language it is, VB6 or VB.NET. Since you say that VB6
    and VB.NET are completely languages, this should be really easy for you...

    'this is a Public subroutine
    Public Sub QuizForMM()

    'this line is a comment

    'these next two lines declare constants
    Const intStart As Integer = 1
    Const intStop As Integer = 10

    'these next few lines declare variables
    Dim strName As String
    Dim intCount As Integer
    Dim lngTotal As Long
    Dim dblCalculation As Double
    Dim blnTrueOrFalse As Boolean

    'let's see some variables in action
    strName = "Joe Blow"
    intCount = 5
    lngTotal = 1 + 2 + 3
    blnTrueOrFalse = False

    'here's a little math (addition, subtraction, multiplication and
    division)
    dblCalculation = ((500 * 8) / 2) - 10

    'let's declare some Date variables
    Dim dteToday As Date
    Dim dteXMas As Date

    'the Now function
    dteToday = Now
    'this line uses the # syntax to denote a date
    dteXMas = #12/25/2002#

    'let's see a For...Next loop
    lngTotal = 0
    Dim i As Integer
    For i = intStart To intStop
    lngTotal = lngTotal + i
    Next i

    'let's see a For...Next loop that uses Step
    lngTotal = 0
    For i = intStop To intStart Step -1
    lngTotal = lngTotal + i
    Next i

    'let's see a Do...While loop
    lngTotal = 0
    i = 0
    Do While i <= 10
    i = i + 1
    lngTotal = lngTotal + i
    Loop

    'let's see a Do...Until loop
    lngTotal = 0
    i = 0
    Do
    i = i + 1
    lngTotal = lngTotal + i
    Loop Until i > 10

    'let's call a function, storing the return variable in the boolean
    we
    'declared earlier
    blnTrueOrFalse = ReturnTrue

    'let's call the function and ignore the return value
    Call ReturnTrue()

    'let's see an If...End If statement
    If blnTrueOrFalse Then
    Call MsgBox("The function returned True")
    End If

    'let's see an If...End If statement using an Else
    If blnTrueOrFalse Then
    Call MsgBox("The function returned True")
    Else
    Call MsgBox("The function returned False")
    End If

    'let's see an If...End using And
    If lngTotal > 0 And i < 5 Then
    'do something
    End If

    'let's see an If...End using Or
    If lngTotal > 0 And i < 5 Then
    'do something
    End If

    'nested If...End If using Else and And and Or
    'let's see an If...End using And
    If lngTotal > 0 And i < 5 Then
    If lngTotal > 0 And i < 5 Then
    'do something
    Else
    'do something else
    End If
    End If

    'let's see a Select Case statement
    Dim intScore As Integer
    Dim strGrade As String

    Select Case intScore
    Case Is >= 90
    strGrade = "A"
    Case Is >= 80
    strGrade = "B"
    Case Is >= 70
    strGrade = "C"
    Case Is >= 60
    strGrade = "D"
    Case Else
    strGrade = "F"
    End Select

    'let's have some string fun
    Call FunWithStrings()

    End Sub

    'this is a private function
    Private Function ReturnTrue() As Boolean
    ReturnTrue = True
    End Function

    Private Sub FunWithStrings()
    Dim strPresident As String
    Dim lngLength As Long

    strPresident = " George Bush "

    strPresident = Trim(strPresident)
    strPresident = LCase(strPresident)
    strPresident = UCase(strPresident)
    lngLength = Len(strPresident)
    strPresident = Replace(strPresident, " ", "-")
    lngLength = Len(strPresident)
    Call MsgBox(strPresident)
    End Sub

    OK, Mike. You just said that VB.NET is a completely different language. So
    tell us, what language is the above? Is it VB6 or VB.NET?

    /Pat

    kylix_is@yahoo.co.uk (Mike Mitchell) wrote:
    >
    >Maybe this will help to make it clear why we ex-VB programmers are so
    >pissed off at Microsoft for discontinuing classic VB and forcing us to
    >learn almost a completely different language. Basic has been around
    >for decades in much the same form. There were differences, sure, but
    >they were all very obviously Basics. Now the one "Basic" that isn't
    >has the gall to use the SAME NAME as a genuine Basic, thereby causing
    >many folks to believe it's the same under the hood. Well, it ain't,
    >and we're pissed off about it!
    >
    >MM



  2. #2
    Zane Thomas Guest

    Re: Quiz for MM

    On 27 Aug 2002 15:16:04 -0700, "Patrick Troughton" <Patrick@Troughton.com>
    wrote:

    > Is it VB6 or VB.NET?


    It's not c#, that much I can say for sure.


    --

    *--------={ Fine Art for .NET }=--------*
    | .Net Components @ www.abderaware.com |
    *---------------------------------------*

    Turn on, tune in, download.
    zane a@t abderaware.com

  3. #3
    MMFAN Guest

    Re: Quiz for MM


    Nicely chosen syntax. If this is type of programs you are writing, I can
    understand why you are so dumbfounded by the fact people are complaining.

    Where is the entry point for your application?

    Some simple error traping would have been nice. How about an on error goto?

    Where is the fun with files portion of your "app"?



    "Patrick Troughton" <Patrick@Troughton.com> wrote:
    >
    >Hi Mike,
    >
    >So you say that Visual Basic.NET is "a completely different language"? Hmm..really?
    >Let's put that to the test, shall we?
    >
    >I have a little quiz for you. It's really simple. I'll give you a code sample
    >and you tell me what language it is, VB6 or VB.NET. Since you say that VB6
    >and VB.NET are completely languages, this should be really easy for you...
    >
    > 'this is a Public subroutine
    > Public Sub QuizForMM()
    >
    > 'this line is a comment
    >
    > 'these next two lines declare constants
    > Const intStart As Integer = 1
    > Const intStop As Integer = 10
    >
    > 'these next few lines declare variables
    > Dim strName As String
    > Dim intCount As Integer
    > Dim lngTotal As Long
    > Dim dblCalculation As Double
    > Dim blnTrueOrFalse As Boolean
    >
    > 'let's see some variables in action
    > strName = "Joe Blow"
    > intCount = 5
    > lngTotal = 1 + 2 + 3
    > blnTrueOrFalse = False
    >
    > 'here's a little math (addition, subtraction, multiplication and
    >division)
    > dblCalculation = ((500 * 8) / 2) - 10
    >
    > 'let's declare some Date variables
    > Dim dteToday As Date
    > Dim dteXMas As Date
    >
    > 'the Now function
    > dteToday = Now
    > 'this line uses the # syntax to denote a date
    > dteXMas = #12/25/2002#
    >
    > 'let's see a For...Next loop
    > lngTotal = 0
    > Dim i As Integer
    > For i = intStart To intStop
    > lngTotal = lngTotal + i
    > Next i
    >
    > 'let's see a For...Next loop that uses Step
    > lngTotal = 0
    > For i = intStop To intStart Step -1
    > lngTotal = lngTotal + i
    > Next i
    >
    > 'let's see a Do...While loop
    > lngTotal = 0
    > i = 0
    > Do While i <= 10
    > i = i + 1
    > lngTotal = lngTotal + i
    > Loop
    >
    > 'let's see a Do...Until loop
    > lngTotal = 0
    > i = 0
    > Do
    > i = i + 1
    > lngTotal = lngTotal + i
    > Loop Until i > 10
    >
    > 'let's call a function, storing the return variable in the boolean
    >we
    > 'declared earlier
    > blnTrueOrFalse = ReturnTrue
    >
    > 'let's call the function and ignore the return value
    > Call ReturnTrue()
    >
    > 'let's see an If...End If statement
    > If blnTrueOrFalse Then
    > Call MsgBox("The function returned True")
    > End If
    >
    > 'let's see an If...End If statement using an Else
    > If blnTrueOrFalse Then
    > Call MsgBox("The function returned True")
    > Else
    > Call MsgBox("The function returned False")
    > End If
    >
    > 'let's see an If...End using And
    > If lngTotal > 0 And i < 5 Then
    > 'do something
    > End If
    >
    > 'let's see an If...End using Or
    > If lngTotal > 0 And i < 5 Then
    > 'do something
    > End If
    >
    > 'nested If...End If using Else and And and Or
    > 'let's see an If...End using And
    > If lngTotal > 0 And i < 5 Then
    > If lngTotal > 0 And i < 5 Then
    > 'do something
    > Else
    > 'do something else
    > End If
    > End If
    >
    > 'let's see a Select Case statement
    > Dim intScore As Integer
    > Dim strGrade As String
    >
    > Select Case intScore
    > Case Is >= 90
    > strGrade = "A"
    > Case Is >= 80
    > strGrade = "B"
    > Case Is >= 70
    > strGrade = "C"
    > Case Is >= 60
    > strGrade = "D"
    > Case Else
    > strGrade = "F"
    > End Select
    >
    > 'let's have some string fun
    > Call FunWithStrings()
    >
    > End Sub
    >
    > 'this is a private function
    > Private Function ReturnTrue() As Boolean
    > ReturnTrue = True
    > End Function
    >
    > Private Sub FunWithStrings()
    > Dim strPresident As String
    > Dim lngLength As Long
    >
    > strPresident = " George Bush "
    >
    > strPresident = Trim(strPresident)
    > strPresident = LCase(strPresident)
    > strPresident = UCase(strPresident)
    > lngLength = Len(strPresident)
    > strPresident = Replace(strPresident, " ", "-")
    > lngLength = Len(strPresident)
    > Call MsgBox(strPresident)
    > End Sub
    >
    >OK, Mike. You just said that VB.NET is a completely different language.

    So
    >tell us, what language is the above? Is it VB6 or VB.NET?
    >
    >/Pat
    >
    >kylix_is@yahoo.co.uk (Mike Mitchell) wrote:
    >>
    >>Maybe this will help to make it clear why we ex-VB programmers are so
    >>pissed off at Microsoft for discontinuing classic VB and forcing us to
    >>learn almost a completely different language. Basic has been around
    >>for decades in much the same form. There were differences, sure, but
    >>they were all very obviously Basics. Now the one "Basic" that isn't
    >>has the gall to use the SAME NAME as a genuine Basic, thereby causing
    >>many folks to believe it's the same under the hood. Well, it ain't,
    >>and we're pissed off about it!
    >>
    >>MM

    >



  4. #4
    Patrick Troughton Guest

    Re: Quiz for MM


    Hi MMFAN,

    I'm glad you're here. Your namesake said that VB.NET was a "completely different
    language". So I put together a little quiz for him. I'm still waiting for
    his answer. Did you want to take a stab at it? It's only about 200 lines
    of code but packs a **** of a lot of whallop into those 200 lines. Over 40
    different, common, everyday VB language constructs and syntax were demonstrated
    in that code sample. Everthing from compound conditions... to boolean logic...to
    mathematical operations...to string manipulation...etc. was represented.
    As you suggested, I could have thrown in more stuff, like error handling.
    I stopped where I did because there is such a thing as overkill. So anyway...MM
    said that that VB.NET is a completely different language, so this should
    be very easy. In fact, with so many different and varied language constructs
    in the code, this should be super easy. Come on, be a sport....which language
    is it, VB6 or VB.NET?

    /Pat

    "MMFAN" <MMF@MMF.org> wrote:
    >
    >Nicely chosen syntax. If this is type of programs you are writing, I can
    >understand why you are so dumbfounded by the fact people are complaining.
    >
    >Where is the entry point for your application?
    >
    >Some simple error traping would have been nice. How about an on error goto?
    >
    >Where is the fun with files portion of your "app"?
    >
    >
    >
    >"Patrick Troughton" <Patrick@Troughton.com> wrote:
    >>
    >>Hi Mike,
    >>
    >>So you say that Visual Basic.NET is "a completely different language"?

    Hmm..really?
    >>Let's put that to the test, shall we?
    >>
    >>I have a little quiz for you. It's really simple. I'll give you a code

    sample
    >>and you tell me what language it is, VB6 or VB.NET. Since you say that

    VB6
    >>and VB.NET are completely languages, this should be really easy for you...
    >>
    >> 'this is a Public subroutine
    >> Public Sub QuizForMM()
    >>
    >> 'this line is a comment
    >>
    >> 'these next two lines declare constants
    >> Const intStart As Integer = 1
    >> Const intStop As Integer = 10
    >>
    >> 'these next few lines declare variables
    >> Dim strName As String
    >> Dim intCount As Integer
    >> Dim lngTotal As Long
    >> Dim dblCalculation As Double
    >> Dim blnTrueOrFalse As Boolean
    >>
    >> 'let's see some variables in action
    >> strName = "Joe Blow"
    >> intCount = 5
    >> lngTotal = 1 + 2 + 3
    >> blnTrueOrFalse = False
    >>
    >> 'here's a little math (addition, subtraction, multiplication and
    >>division)
    >> dblCalculation = ((500 * 8) / 2) - 10
    >>
    >> 'let's declare some Date variables
    >> Dim dteToday As Date
    >> Dim dteXMas As Date
    >>
    >> 'the Now function
    >> dteToday = Now
    >> 'this line uses the # syntax to denote a date
    >> dteXMas = #12/25/2002#
    >>
    >> 'let's see a For...Next loop
    >> lngTotal = 0
    >> Dim i As Integer
    >> For i = intStart To intStop
    >> lngTotal = lngTotal + i
    >> Next i
    >>
    >> 'let's see a For...Next loop that uses Step
    >> lngTotal = 0
    >> For i = intStop To intStart Step -1
    >> lngTotal = lngTotal + i
    >> Next i
    >>
    >> 'let's see a Do...While loop
    >> lngTotal = 0
    >> i = 0
    >> Do While i <= 10
    >> i = i + 1
    >> lngTotal = lngTotal + i
    >> Loop
    >>
    >> 'let's see a Do...Until loop
    >> lngTotal = 0
    >> i = 0
    >> Do
    >> i = i + 1
    >> lngTotal = lngTotal + i
    >> Loop Until i > 10
    >>
    >> 'let's call a function, storing the return variable in the boolean
    >>we
    >> 'declared earlier
    >> blnTrueOrFalse = ReturnTrue
    >>
    >> 'let's call the function and ignore the return value
    >> Call ReturnTrue()
    >>
    >> 'let's see an If...End If statement
    >> If blnTrueOrFalse Then
    >> Call MsgBox("The function returned True")
    >> End If
    >>
    >> 'let's see an If...End If statement using an Else
    >> If blnTrueOrFalse Then
    >> Call MsgBox("The function returned True")
    >> Else
    >> Call MsgBox("The function returned False")
    >> End If
    >>
    >> 'let's see an If...End using And
    >> If lngTotal > 0 And i < 5 Then
    >> 'do something
    >> End If
    >>
    >> 'let's see an If...End using Or
    >> If lngTotal > 0 And i < 5 Then
    >> 'do something
    >> End If
    >>
    >> 'nested If...End If using Else and And and Or
    >> 'let's see an If...End using And
    >> If lngTotal > 0 And i < 5 Then
    >> If lngTotal > 0 And i < 5 Then
    >> 'do something
    >> Else
    >> 'do something else
    >> End If
    >> End If
    >>
    >> 'let's see a Select Case statement
    >> Dim intScore As Integer
    >> Dim strGrade As String
    >>
    >> Select Case intScore
    >> Case Is >= 90
    >> strGrade = "A"
    >> Case Is >= 80
    >> strGrade = "B"
    >> Case Is >= 70
    >> strGrade = "C"
    >> Case Is >= 60
    >> strGrade = "D"
    >> Case Else
    >> strGrade = "F"
    >> End Select
    >>
    >> 'let's have some string fun
    >> Call FunWithStrings()
    >>
    >> End Sub
    >>
    >> 'this is a private function
    >> Private Function ReturnTrue() As Boolean
    >> ReturnTrue = True
    >> End Function
    >>
    >> Private Sub FunWithStrings()
    >> Dim strPresident As String
    >> Dim lngLength As Long
    >>
    >> strPresident = " George Bush "
    >>
    >> strPresident = Trim(strPresident)
    >> strPresident = LCase(strPresident)
    >> strPresident = UCase(strPresident)
    >> lngLength = Len(strPresident)
    >> strPresident = Replace(strPresident, " ", "-")
    >> lngLength = Len(strPresident)
    >> Call MsgBox(strPresident)
    >> End Sub
    >>
    >>OK, Mike. You just said that VB.NET is a completely different language.

    >So
    >>tell us, what language is the above? Is it VB6 or VB.NET?
    >>
    >>/Pat



  5. #5
    Shelly Rosenfeld Guest

    Re: Quiz for MM


    "Patrick Troughton" <Patrick@Troughton.com> wrote in message
    news:3d6bfa24$1@10.1.10.29...
    >
    > Hi Mike,
    >
    > So you say that Visual Basic.NET is "a completely different language"?

    Hmm..really?
    > Let's put that to the test, shall we?
    >
    > I have a little quiz for you. It's really simple. I'll give you a code

    sample
    > and you tell me what language it is, VB6 or VB.NET. Since you say that VB6
    > and VB.NET are completely languages, this should be really easy for you...
    >
    > 'this is a Public subroutine
    > Public Sub QuizForMM()
    >
    > 'this line is a comment
    >
    > 'these next two lines declare constants
    > Const intStart As Integer = 1
    > Const intStop As Integer = 10
    >


    Don't know.
    VB6 integer consumes 2 bytes whereas .Net consumes 4?



  6. #6
    Ian R Guest

    Re: Quiz for MM


    "Shelly Rosenfeld" <ShellyRO@worldnet.att.net> wrote in message
    news:3d6cd1a9@10.1.10.29...
    > >
    > > 'these next two lines declare constants
    > > Const intStart As Integer = 1
    > > Const intStop As Integer = 10
    > >

    >
    > Don't know.
    > VB6 integer consumes 2 bytes whereas .Net consumes 4?
    >


    Does it matter ? You can get the size of an integer using the Len function
    in both VB6 and VB.NET.



  7. #7
    Patrick Steele [MVP] Guest

    Re: Quiz for MM

    In article <3d6d0ad3$1@10.1.10.29> (from Ian R <ianr@na.net>),
    > > VB6 integer consumes 2 bytes whereas .Net consumes 4?
    > >

    >
    > Does it matter ? You can get the size of an integer using the Len function
    > in both VB6 and VB.NET.


    True. But in all fairness, if you have code *expecting* it to be a
    certain length, you could run into problems.

    --
    Patrick Steele
    Microsoft .NET MVP
    http://radio.weblogs.com/0110109

  8. #8
    Ian R Guest

    Re: Quiz for MM

    Agreed. But that's where type information in the data is handy.

    "Patrick Steele [MVP]" <patrick@mvps.org> wrote in message
    news:MPG.17d6ef3a9e5ff42e9899a9@news.devx.com...
    > In article <3d6d0ad3$1@10.1.10.29> (from Ian R <ianr@na.net>),
    > > > VB6 integer consumes 2 bytes whereas .Net consumes 4?
    > > >

    > >
    > > Does it matter ? You can get the size of an integer using the Len

    function
    > > in both VB6 and VB.NET.

    >
    > True. But in all fairness, if you have code *expecting* it to be a
    > certain length, you could run into problems.
    >
    > --
    > Patrick Steele
    > Microsoft .NET MVP
    > http://radio.weblogs.com/0110109




  9. #9
    Zane Thomas Guest

    Re: Quiz for MM

    Ian,

    Could you please ping me via email? I've tried sending email to you but
    since there is no reply I'm not sure I have an address you check
    frequently, if at all.


    --

    *--------={ Fine Art for .NET }=--------*
    | .Net Components @ www.abderaware.com |
    *---------------------------------------*

    Turn on, tune in, download.
    zane a@t abderaware.com

  10. #10
    Ian R Guest

    Re: Quiz for MM

    OK, will do

    "Zane Thomas" <zane@abderaware.com> wrote in message
    news:3d7732a1.168921703@news.devx.com...
    > Ian,
    >
    > Could you please ping me via email? I've tried sending email to you but
    > since there is no reply I'm not sure I have an address you check
    > frequently, if at all.
    >
    >
    > --
    >
    > *--------={ Fine Art for .NET }=--------*
    > | .Net Components @ www.abderaware.com |
    > *---------------------------------------*
    >
    > Turn on, tune in, download.
    > zane a@t abderaware.com




  11. #11
    Larry Serflaten Guest

    Re: Quiz for MM

    "Patrick Troughton" <Patrick@Troughton.com> wrote
    > >Maybe this will help to make it clear why we ex-VB programmers are so
    > >pissed off at Microsoft for discontinuing classic VB and forcing us to
    > >learn almost a completely different language.

    >
    > So you say that Visual Basic.NET is "a completely different language"? Hmm..really?
    > Let's put that to the test, shall we?
    >

    <...>
    >
    > OK, Mike. You just said that VB.NET is a completely different language. So
    > tell us, what language is the above? Is it VB6 or VB.NET?
    >
    > /Pat



    I know! I know!

    But I'm not Mike, so I'll hold my answer until Mike has a go at it....

    <g>
    LFS





  12. #12
    Mike Mitchell Guest

    Re: Quiz for MM

    On 27 Aug 2002 15:16:04 -0700, "Patrick Troughton"
    <Patrick@Troughton.com> wrote:

    >OK, Mike. You just said that VB.NET is a completely different language. So
    >tell us, what language is the above? Is it VB6 or VB.NET?


    It's sad that you should attempt to deceive potential converts to
    VB.Net by concealing the very many differences in it over classic VB
    by such beguiling and partial propaganda. By deliberately targeting
    only those constructs which happen to be similar in both languages,
    you are allowing the inference to be drawn that they are the same.
    They are not. VB.Net is completely different. It is not backwards
    compatible (always a dead giveaway of how much difference there is).
    You cannot load any non-trivial classic VB program into it without
    snafus left, right and centre. This is the experience of many who have
    tried to do just that. Not even the conversion "wizard" appears to be
    of much help. This is what Dan Appleman says in his Moving to VB.Net
    tome: "VB.Net is a 'Visual Basic' but it is not Visual Basic as it has
    evolved from VB1 to VB6. It is a different language." Even the master
    is saying it; and much the same has been levelled at the new language
    from other quarters. As Lori Piquet wrote in her piece "Abandoning the
    Fantasy of VB Migration Wizardry" you'd be "living a fantasy" if you
    expected a VB.Net app to materialise from VB6 code with the aid of the
    wizard and some debugging and testing. Sure, keep your fantasies alive
    if you want, but I'm here to make sure others with their feet firmly
    on the ground are not sucked into the Peter Pan environment inhabited
    by most of the .Net's disciples.

    I don't really know what it is that you seem so desperate to disprove;
    more a case of bolstering one's own evangelistic fervour, I suspect.
    Maybe the Redmond Valkyries are screaming for more souls and there
    ain't enough ex-VB programmers willing to satiate their desires?

    MM

  13. #13
    Patrick Troughton Guest

    Re: Quiz for MM


    For two years, we've heard the .NOTters rant and rave that VB.NET isn't Visual
    Basic anymore....

    "It's a completely different language! Why, it's not even BASIC, it's Visual
    FRED!"

    So finally, I decided to put it to the test. The code sample I provided included
    over *40* common, everyday VB constructs. If you are correct and they really
    are "completely different languages", they should have nothing in common,
    let alone 40 different constructs. You should be having no trouble telling
    the two apart.

    So, actually, I'm on your side. This is your chance! You can finally prove
    to everyone that the .NOTters have been right all along! You can prove once
    and for all that VB6 and VB.NET are "completely different languages".

    So, if you think about it, you should be happy, not defensive.

    Or maybe, just maybe...and I know this is a radical thought that might be
    difficult for yourself and the other .NOTters to accept...is it possible,
    just possible, that you might have been exagerating? Is it possible that
    VB6 and VB.NET share a lot more in common than you are willing to admit?

    Well, either way, this is your chance to set the record straight once and
    for all. You've had two days to think about it. If they really are two differently
    language, you should have absolutely no problem telling the two apart.

    So please stop avoiding the issue and answer the simple question, is it VB6
    or VB.NET?

    /Pat

    kylix_is@yahoo.co.uk (Mike Mitchell) wrote:
    >On 27 Aug 2002 15:16:04 -0700, "Patrick Troughton"
    ><Patrick@Troughton.com> wrote:
    >
    >>OK, Mike. You just said that VB.NET is a completely different language.

    So
    >>tell us, what language is the above? Is it VB6 or VB.NET?

    >
    >It's sad that you should attempt to deceive potential converts to
    >VB.Net by concealing the very many differences in it over classic VB
    >by such beguiling and partial propaganda. By deliberately targeting
    >only those constructs which happen to be similar in both languages,
    >you are allowing the inference to be drawn that they are the same.
    >They are not. VB.Net is completely different. It is not backwards
    >compatible (always a dead giveaway of how much difference there is).
    >You cannot load any non-trivial classic VB program into it without
    >snafus left, right and centre. This is the experience of many who have
    >tried to do just that. Not even the conversion "wizard" appears to be
    >of much help. This is what Dan Appleman says in his Moving to VB.Net
    >tome: "VB.Net is a 'Visual Basic' but it is not Visual Basic as it has
    >evolved from VB1 to VB6. It is a different language." Even the master
    >is saying it; and much the same has been levelled at the new language
    >from other quarters. As Lori Piquet wrote in her piece "Abandoning the
    >Fantasy of VB Migration Wizardry" you'd be "living a fantasy" if you
    >expected a VB.Net app to materialise from VB6 code with the aid of the
    >wizard and some debugging and testing. Sure, keep your fantasies alive
    >if you want, but I'm here to make sure others with their feet firmly
    >on the ground are not sucked into the Peter Pan environment inhabited
    >by most of the .Net's disciples.
    >
    >I don't really know what it is that you seem so desperate to disprove;
    >more a case of bolstering one's own evangelistic fervour, I suspect.
    >Maybe the Redmond Valkyries are screaming for more souls and there
    >ain't enough ex-VB programmers willing to satiate their desires?
    >
    >MM



  14. #14
    Paul Clement Guest

    Re: Quiz for MM

    On Thu, 29 Aug 2002 09:54:28 GMT, kylix_is@yahoo.co.uk (Mike Mitchell) wrote:

    On 27 Aug 2002 15:16:04 -0700, "Patrick Troughton"
    <Patrick@Troughton.com> wrote:

    >OK, Mike. You just said that VB.NET is a completely different language. So
    >tell us, what language is the above? Is it VB6 or VB.NET?

    It's sad that you should attempt to deceive potential converts to
    VB.Net by concealing the very many differences in it over classic VB
    by such beguiling and partial propaganda. By deliberately targeting
    only those constructs which happen to be similar in both languages,
    you are allowing the inference to be drawn that they are the same.
    They are not. VB.Net is completely different. It is not backwards
    compatible (always a dead giveaway of how much difference there is).
    You cannot load any non-trivial classic VB program into it without
    snafus left, right and centre. This is the experience of many who have
    tried to do just that. Not even the conversion "wizard" appears to be
    of much help. This is what Dan Appleman says in his Moving to VB.Net
    tome: "VB.Net is a 'Visual Basic' but it is not Visual Basic as it has
    evolved from VB1 to VB6. It is a different language." Even the master
    is saying it; and much the same has been levelled at the new language
    from other quarters. As Lori Piquet wrote in her piece "Abandoning the
    Fantasy of VB Migration Wizardry" you'd be "living a fantasy" if you
    expected a VB.Net app to materialise from VB6 code with the aid of the
    wizard and some debugging and testing. Sure, keep your fantasies alive
    if you want, but I'm here to make sure others with their feet firmly
    on the ground are not sucked into the Peter Pan environment inhabited
    by most of the .Net's disciples.

    I don't really know what it is that you seem so desperate to disprove;
    more a case of bolstering one's own evangelistic fervour, I suspect.
    Maybe the Redmond Valkyries are screaming for more souls and there
    ain't enough ex-VB programmers willing to satiate their desires?


    So other than the fact that it's a different environment and you don't like it, what is your point?


    Paul ~~~ pclement@ameritech.net
    Microsoft MVP (Visual Basic)

  15. #15
    Mark Jerde Guest

    Re: Quiz for MM

    Patrick,

    > So please stop avoiding the issue and answer the simple question, is it VB6
    > or VB.NET?


    Hehehe.... ;-)

    Mark Jerde
    Biometrics - www.idtechpartners.com



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center