DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Re: Compiler Constant to Identify VB.NET versus VB 6.0 - Redo

  1. #1
    Larry Rebich Guest

    Re: Compiler Constant to Identify VB.NET versus VB 6.0 - Redo

    Although I respect your opinions I've been pushing for 'version' information
    in VB since VB 3. There are some code items that don't work with previous
    version and it would be nice if the compiler had a compilation argument that
    could be used. One example:

    VB 5 does not have a 'Replace' function. So I have code module that I use
    with an old VB5 application [the user does not want to convert to VB6] that
    has a manually written 'Replace' function. I use that same module in a VB 6
    application and I could use the native 'Replace' if the code was compiled
    under VB6.

    So, please don't 'kiss off' this suggestion so lightly.

    Cheers,
    Larry Rebich

    More tips link to:
    http://www.buygold.net/tips

    Please:
    No personal e-mail questions :-)


    "Frank Oquendo" <franko@acadx.com> wrote in message
    news:3c050c8e$1@147.208.176.211...
    > > That way we could use one code base for
    > > both versions of VB.

    >
    > The only thing even remotely VB about VB.NET is the syntax. The languages
    > are totally different. You might as well try to maintain a single codebase
    > for Java/VB. Do yourself a favor and forget the idea.
    >
    > --
    > Good judgment comes from experience.
    > Experience comes from bad judgment.
    >
    > http://www.acadx.com
    >
    >
    > "Larry Rebich" <lrebich@earthlink.net> wrote in message
    > news:3c04eb2a$1@147.208.176.211...
    > > Is there a way to identify that VB.NET is being versus VB 6.0?
    > >
    > > It would be handy to have a compiler constant that causes VB.NET code to

    > be
    > > generated rather than VB 6.0 code. That way we could use one code base

    for
    > > both versions of VB. Something like:
    > >
    > > #If VBNET Then
    > > ....VB.NET code
    > > #Else
    > > ....VB6 code
    > > #End If
    > >
    > > Cheers,
    > > Larry Rebich
    > >
    > >
    > >
    > >
    > >

    >
    >




  2. #2
    Larry Rebich Guest

    Re: Compiler Constant to Identify VB.NET versus VB 6.0 - Redo

    And Bob/Frank if you want to 'discuss' your opinions I'd suggest you use the
    dotnet.discussion group. I asked a technical question...

    Cheers,
    Larry Rebich

    "Larry Rebich" <lrebich@earthlink.net> wrote in message
    news:3c06446d@147.208.176.211...
    > Although I respect your opinions I've been pushing for 'version'

    information
    > in VB since VB 3. There are some code items that don't work with previous
    > version and it would be nice if the compiler had a compilation argument

    that
    > could be used. One example:
    >
    > VB 5 does not have a 'Replace' function. So I have code module that I use
    > with an old VB5 application [the user does not want to convert to VB6]

    that
    > has a manually written 'Replace' function. I use that same module in a VB

    6
    > application and I could use the native 'Replace' if the code was compiled
    > under VB6.
    >
    > So, please don't 'kiss off' this suggestion so lightly.
    >
    > Cheers,
    > Larry Rebich
    >
    > More tips link to:
    > http://www.buygold.net/tips
    >
    > Please:
    > No personal e-mail questions :-)
    >
    >
    > "Frank Oquendo" <franko@acadx.com> wrote in message
    > news:3c050c8e$1@147.208.176.211...
    > > > That way we could use one code base for
    > > > both versions of VB.

    > >
    > > The only thing even remotely VB about VB.NET is the syntax. The

    languages
    > > are totally different. You might as well try to maintain a single

    codebase
    > > for Java/VB. Do yourself a favor and forget the idea.
    > >
    > > --
    > > Good judgment comes from experience.
    > > Experience comes from bad judgment.
    > >
    > > http://www.acadx.com
    > >
    > >
    > > "Larry Rebich" <lrebich@earthlink.net> wrote in message
    > > news:3c04eb2a$1@147.208.176.211...
    > > > Is there a way to identify that VB.NET is being versus VB 6.0?
    > > >
    > > > It would be handy to have a compiler constant that causes VB.NET code

    to
    > > be
    > > > generated rather than VB 6.0 code. That way we could use one code base

    > for
    > > > both versions of VB. Something like:
    > > >
    > > > #If VBNET Then
    > > > ....VB.NET code
    > > > #Else
    > > > ....VB6 code
    > > > #End If
    > > >
    > > > Cheers,
    > > > Larry Rebich
    > > >
    > > >
    > > >
    > > >
    > > >

    > >
    > >

    >
    >




  3. #3
    Bob Butler Guest

    Re: Compiler Constant to Identify VB.NET versus VB 6.0 - Redo


    "Larry Rebich" <lrebich@earthlink.net> wrote in message
    news:3c06450a@147.208.176.211...
    > And Bob/Frank if you want to 'discuss' your opinions I'd suggest you use

    the
    > dotnet.discussion group. I asked a technical question...


    You are correct that this is the wrong forum for those posts; my apologies.

    FWIW, I do agree that for moving forward some sort of compiler constant for
    version information would be useful both in VB and in VB.Net as well as C#,
    C++ and any other language.




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