|
-
August 16th, 1999, 08:52 PM
#1
Memory usage by controls
In a VB app. what is the effect on memory by using bound (dbcombo,dbgrid, etc ) and unbound (combo, etc) controls.
We can open database by using Data control at design time Or we can define it at runtime.
Which is more efficient and less memory consumption.
i have a form having several combo box and text box and grid . and they are linked with different tables in similat database. what is the vesy methid to connect it to database.
-
August 17th, 1999, 10:32 PM
#2
Re: Memory usage by controls
The effect is same after compilation but when u do it at desing time, the connection speed to the database is fast and its less memory consuming.
but when u connect to the database at runtime please set the forms memory to nothing which will
inturn set all the controls memory to nothing.
There is no difference of using a bound and an unbound controls bcos there is no difference on memory handling but the difference is there only on connection speed
Be careful when u r using a DBcombo control with data binding because there are known bugs and loss of data for which u can install service pack 3 to avoid the above error
For connecting to different tables using different controls, use the same data source for all the controls but in the datafield property of each control set the table name u wish to access. this is the efficient way at runtime by setting the datacontrol's recordsource property. if u want it in design time u will have to go in for different datacontrol for each and every control
please get back to [email protected] or [email protected] for further clarifications
The Ultimate Solution Providers
Authors
Sriman & Jayaraman
Email : [email protected]
[email protected]
Hand Phone : +(6) 016 2237147
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
|