|
-
Sep 19th, 2001, 03:51 PM
#1
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:
'code like this
for i = 0 to X
set text1(i).datasource = rst.fields(i)
text1(i).datafield = rst.fields(i).name
next i
b) setting the text manually: 70 - 80ms
VB Code:
'code like this
for i = 0 to X
text1(i).text = rst.fields(i).value
next i
bye bye to bound controls...
regards,
Helger
-
Sep 19th, 2001, 04:27 PM
#2
-= B u g S l a y e r =-
How about populating grids?
done any tests ? (bound vs unbound)
-
Sep 19th, 2001, 07:48 PM
#3
PowerPoster
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
-
Sep 19th, 2001, 11:43 PM
#4
Registered User
Yeah I never use bound controls...
-
Sep 20th, 2001, 12:00 AM
#5
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|