VB 6.0 & Data Environment???


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: VB 6.0 & Data Environment???

  1. #1
    Brad Isaacs Guest

    VB 6.0 & Data Environment???


    Dear friends,

    I recently completed a Project.vbp (VB 6.0 program using a Data Environment/connection
    to a command containing a table) and my question is this:

    If I were to transfer my Project.vbp (my forms, modules , reports.. and data
    environment connection..etc) to another Project.vbp that already has its
    own Data Enviornment connection.

    Would I have to use that connection with my Forms etc and rewrite the connection
    plus add a command within that Project.vbp for my program, OR could I place
    my data Environment within that Project and call it a day?

    Would this be considered poor programming skills? It works great and is
    efficent from an organized stand point. What I wonder is if this is a good
    idea to perform?

    I would like to hear from others who have more experience than I, using
    Visual Basic 6.0. Any ideas, comments or examples would be greatly appreciated.

    Thanks in advance,

    Brad Isaacs
    Junior Visual Basic 6.0 / Crystal reports 8.0 / SQL Server 7.0 Databases



  2. #2
    Paul Clement Guest

    Re: VB 6.0 & Data Environment???

    On 7 Mar 2001 07:39:58 -0800, "Brad Isaacs" <bradhouse@sprint.ca> wrote:


    Dear friends,

    I recently completed a Project.vbp (VB 6.0 program using a Data Environment/connection
    to a command containing a table) and my question is this:

    If I were to transfer my Project.vbp (my forms, modules , reports.. and data
    environment connection..etc) to another Project.vbp that already has its
    own Data Enviornment connection.

    Would I have to use that connection with my Forms etc and rewrite the connection
    plus add a command within that Project.vbp for my program, OR could I place
    my data Environment within that Project and call it a day?

    Would this be considered poor programming skills? It works great and is
    efficent from an organized stand point. What I wonder is if this is a good
    idea to perform?

    I would like to hear from others who have more experience than I, using
    Visual Basic 6.0. Any ideas, comments or examples would be greatly appreciated.

    Thanks in advance,

    Brad Isaacs
    Junior Visual Basic 6.0 / Crystal reports 8.0 / SQL Server 7.0 Databases


    Not sure exactly what you are asking, but essentially you may use multiple Data Environments within
    a single project if you want. Each is self-contained and independent of any other.


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

  3. #3
    Brad Isaacs Guest

    Re: VB 6.0 & Data Environment???


    Dear Paul Clement,

    >Not sure exactly what you are asking, but essentially you may use multiple

    Data Environments within a single project if you want. Each is self-contained
    and independent of any other.

    Ok, Thanks, see I have placed the second data environment thinking it was
    incorrect programming (essentially the wrong method) to have 2 data environments
    ( one for my Reports and the other for the rest of my program. Although
    it seems to work very well and helps with organization within my Project.

    Thanks for your input,

    Brad Isaacs
    8-)

    Junior Visual Basic 6.0 / Crystal reports 8.0 / SQL Server 7.0 Databases

  4. #4
    nilesh nilesh_gangwal2hotmail.com Guest

    Re: VB 6.0 & Data Environment???


    hi
    regarding your question about transfering the project to ther project
    i would suggest you to keep your old dataenvironment connection ,thereby

    conserving the old commands (some connections might have hundreds of commands,so
    you can think of the trouble you would create ,if you were to create new
    commands.
    but keep in mind while doing this, ,you will have to be on the same network
    and server and will have to have same DSN to connect.

    nilesh


    Paul Clement <UseAdddressAtEndofMessage@swspectrum.com> wrote:
    >On 7 Mar 2001 07:39:58 -0800, "Brad Isaacs" <bradhouse@sprint.ca> wrote:
    >
    >
    > Dear friends,
    >
    > I recently completed a Project.vbp (VB 6.0 program using a Data Environment/connection
    > to a command containing a table) and my question is this:
    >
    > If I were to transfer my Project.vbp (my forms, modules , reports.. and

    data
    > environment connection..etc) to another Project.vbp that already has its
    > own Data Enviornment connection.
    >
    > Would I have to use that connection with my Forms etc and rewrite the

    connection
    > plus add a command within that Project.vbp for my program, OR could I

    place
    > my data Environment within that Project and call it a day?
    >
    > Would this be considered poor programming skills? It works great and

    is
    > efficent from an organized stand point. What I wonder is if this is a

    good
    > idea to perform?
    >
    > I would like to hear from others who have more experience than I, using
    > Visual Basic 6.0. Any ideas, comments or examples would be greatly appreciated.
    >
    > Thanks in advance,
    >
    > Brad Isaacs
    > Junior Visual Basic 6.0 / Crystal reports 8.0 / SQL Server 7.0 Databases
    >
    >
    >Not sure exactly what you are asking, but essentially you may use multiple

    Data Environments
    >within
    >a single project if you want. Each is self-contained and independent of

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



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