PC Review


Reply
Thread Tools Rate Thread

Does Dataset.Tbl.Clear() clear all tables or One?

 
 
Daryll Shatz
Guest
Posts: n/a
 
      29th Oct 2003
Does a clear command (ie: DataSet11.TableName.Clear() ) clear just the named
table or all the tables in the set? It appears to be all? How can I clear,
in order to fill, a specific table in a dataset of many tables?

Thanks


 
Reply With Quote
 
 
 
 
Paul Clement
Guest
Posts: n/a
 
      29th Oct 2003
On Tue, 28 Oct 2003 17:44:59 -0800, "Daryll Shatz" <(E-Mail Removed)> wrote:

¤ Does a clear command (ie: DataSet11.TableName.Clear() ) clear just the named
¤ table or all the tables in the set? It appears to be all? How can I clear,
¤ in order to fill, a specific table in a dataset of many tables?
¤

Try:

MyDataSet.Tables("MyDataTableName").Clear()


Paul ~~~ (E-Mail Removed)
Microsoft MVP (Visual Basic)
 
Reply With Quote
 
 
 
 
Daryll Shatz
Guest
Posts: n/a
 
      29th Oct 2003
Thanks, Paul. I tried your syntax too and it still clears all the tables in
the dataset. I guess my question is:

What is it intended to do??? Have you used the Clear method and only had
it clear the named table? If so, this suggests an error in my logic/code
somewhere.

Has anyone else had this problem?



"Paul Clement" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On Tue, 28 Oct 2003 17:44:59 -0800, "Daryll Shatz" <(E-Mail Removed)>

wrote:
>
> ¤ Does a clear command (ie: DataSet11.TableName.Clear() ) clear just the

named
> ¤ table or all the tables in the set? It appears to be all? How can I

clear,
> ¤ in order to fill, a specific table in a dataset of many tables?
> ¤
>
> Try:
>
> MyDataSet.Tables("MyDataTableName").Clear()
>
>
> Paul ~~~ (E-Mail Removed)
> Microsoft MVP (Visual Basic)



 
Reply With Quote
 
Daryll Shatz
Guest
Posts: n/a
 
      29th Oct 2003
I discovered the error in my logic.

I had a listbox bound to a dataview. When I added a record to the dataview,
it triggered the listbox selected events. This somehow caused the other
tables to be cleared. I still need to find this connection but the problem
is mine not VB.

Please ignore this thread. Thanks


"Daryll Shatz" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thanks, Paul. I tried your syntax too and it still clears all the tables

in
> the dataset. I guess my question is:
>
> What is it intended to do??? Have you used the Clear method and only had
> it clear the named table? If so, this suggests an error in my logic/code
> somewhere.
>
> Has anyone else had this problem?
>
>
>
> "Paul Clement" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > On Tue, 28 Oct 2003 17:44:59 -0800, "Daryll Shatz" <(E-Mail Removed)>

> wrote:
> >
> > ¤ Does a clear command (ie: DataSet11.TableName.Clear() ) clear just the

> named
> > ¤ table or all the tables in the set? It appears to be all? How can I

> clear,
> > ¤ in order to fill, a specific table in a dataset of many tables?
> > ¤
> >
> > Try:
> >
> > MyDataSet.Tables("MyDataTableName").Clear()
> >
> >
> > Paul ~~~ (E-Mail Removed)
> > Microsoft MVP (Visual Basic)

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Microsoft Speech Recognition repeating error "all all all all all all...." kenrosen@gmail.com Windows XP General 1 17th Dec 2005 03:22 AM
Microsoft Speech Recognition repeating error "all all all all all all...." kenrosen@gmail.com Windows XP Help 0 16th Dec 2005 07:39 PM
clear history, not "Clear History" or "Clear Forms" or TypedURLS Nick Windows XP Internet Explorer 4 31st Mar 2004 05:22 AM
Re: clear history does not clear browser dropdown Maureen Goldman Windows XP Internet Explorer 0 29th Jul 2003 10:23 PM
warning - clear history does not completely clear the history, why? David L Windows XP Internet Explorer 3 3rd Jul 2003 05:45 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:57 PM.