Results 1 to 5 of 5

Thread: Bound controls vs. setting the values 'manually'

  1. #1
    Helger
    Guest

    Post Bound controls vs. setting the values 'manually'

    Here's the times for setting 450 textboxes' values with two methods:

    a) binding textboxes : 3500 - 4000 ms
    VB Code:
    1. 'code like this
    2. for i = 0 to X
    3.     set text1(i).datasource = rst.fields(i)
    4.     text1(i).datafield = rst.fields(i).name
    5. next i

    b) setting the text manually: 70 - 80ms

    VB Code:
    1. 'code like this
    2. for i = 0 to X
    3.     text1(i).text = rst.fields(i).value
    4. next i

    bye bye to bound controls...

    regards,

    Helger

  2. #2
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    How about populating grids?
    done any tests ? (bound vs unbound)
    -= a peet post =-

  3. #3
    PowerPoster beachbum's Avatar
    Join Date
    Jul 2001
    Location
    Wollongong, NSW, Australia
    Posts
    2,274
    And also, bound controls are hard to validate and control. I have tried them before but they seem to have a mind of their own and I much prefer to do it manually now
    Regards
    Stuart
    Stuart Laidlaw
    Brightspark Financial Software
    http://www.gstsmartbook.com

  4. #4
    Registered User Nucleus's Avatar
    Join Date
    Apr 2001
    Location
    So that's what you are up to ;)
    Posts
    2,530
    Yeah I never use bound controls...

  5. #5
    Frenzied Member
    Join Date
    Jan 2000
    Location
    Brooklyn NY USA
    Posts
    1,258
    Why is it so much slower?

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