Delete Dataset

MTmace

Member
Joined
Feb 1, 2005
Messages
9
Programming Experience
Beginner
I need to completely remove a dataset from my application. I tried the following:

Me.dsLossNotice.Clear()
Me.dsLossNotice.Dispose()

That only seems to clear the data.

Thanks,

MTmace
 
That's all you need to do. The garbage collecter handles the rest. It doesn't immediately run, but disposing of a control marks it to be collected.

As far a modifying the garbage collecter and forcing it to run, you're on your own. That's one of the things that MS explicitly says not to mess with. :)
 
re

DISPOSE releases all the resources

CLEAR clear all the rows in table

you can add a control but can't remove it from application ,if can then HOW??
 
Back
Top