Results 1 to 7 of 7

Thread: [RESOLVED] What is Bound and unbound control?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2010
    Posts
    198

    Resolved [RESOLVED] What is Bound and unbound control?

    Could any one please explain me what is Bound and unbound control in VB6?
    pls give some example.

    regards
    balaram

  2. #2
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: What is Bound and unbound control?

    A bound control is control that is permanently bound (or connected) to a data source (data control).
    To accomplish that you'd drop a data control control (note: there 2 types - dao and ado) on the form, configure its database connection, assign source (table, query, view...) and finally assign data control as a source for your control.
    Otherwise everything needs to be done manually - a lot more coding but you gain a lot more flexibility.

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: What is Bound and unbound control?

    Quote Originally Posted by RhinoBull View Post
    a lot more coding but you gain a lot more flexibility.
    And a lot more control...avoid bound controls.

  4. #4
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: What is Bound and unbound control?

    Bound controls are generally thought of as very bad, and you can find a fuller explanation of why in the article Why is using bound controls a bad thing? from our Database Development FAQs/Tutorials (at the top of this forum)

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Jan 2010
    Posts
    198

    Re: What is Bound and unbound control?

    Thanks for your time to reply,
    now I have bit idea of bound control.
    One more thing; this mean If I need to connect to data base say "Oracle" then what we need to do? which option to use below
    1. use ado control and place on form then set its parameters [as explain by you in #2]
    2. manually write syntax in form load like CNN.Connect "Provider microsoft for oracle username ; scott Password=tiger ; database=orcl" {something like this}.
    I generally use 2nd option.
    could any one please help me is it a bad practice. or I am on the right track unfortunately.
    is 2nd otiopn is unbound control.
    Thanks
    Balaram Prajapati

  6. #6
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: What is Bound and unbound control?

    Option 2 is the way to go...you are on the correct track!

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Jan 2010
    Posts
    198

    Smile Re: What is Bound and unbound control?

    Thanks a lot for this,

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width