Click here to Skip to main content
14,336,453 members

SharePoint

 
QuestionAccessing SharePoint information regarding specific documents Pin
muneebalikiyani13-Feb-13 18:04
membermuneebalikiyani13-Feb-13 18:04 
AnswerRe: Accessing SharePoint information regarding specific documents Pin
Ingo13-Feb-13 21:57
memberIngo13-Feb-13 21:57 
QuestionPopulating list columns in Sharepoint 2010 custom doc library Pin
Aptiva Dave10-Feb-13 7:15
memberAptiva Dave10-Feb-13 7:15 
AnswerRe: Populating list columns in Sharepoint 2010 custom doc library Pin
AnandSharmaUK20-Feb-13 0:27
memberAnandSharmaUK20-Feb-13 0:27 
QuestionSoftware and Hardware requirements for document shareing Pin
HemadriT7-Feb-13 7:24
memberHemadriT7-Feb-13 7:24 
AnswerRe: Software and Hardware requirements for document shareing Pin
Ingo10-Feb-13 21:10
memberIngo10-Feb-13 21:10 
QuestionDeleting Items in a SPListItemCollection Pin
Aptiva Dave31-Jan-13 5:05
memberAptiva Dave31-Jan-13 5:05 
AnswerRe: Deleting Items in a SPListItemCollection Pin
JimmyRopes7-Feb-13 1:39
professionalJimmyRopes7-Feb-13 1:39 
I find it painful to read VB so I won't try to see where you are going wrong. Here is an alternate way of deleting all items from a list that may not be as efficient but for lists with a reasonable number of items the efficiency will not matter.

Go through the list items and get a list of GUIDs of the list items.

SPListItemCollection listItems = oWeb.Lists["List Name"].Items;
List<GUID> listGUID = new List<GUID>();
foreach (SPListItem Item in listItems)
{
  listGUID.Add(Item.UniqueId);
}


Translate that to VB.

Then go through the list of GUIDs and delete each one. Update the list after you are finished and the items will be gone.

The report of my death was an exaggeration - Mark Twain

Simply Elegant Designs JimmyRopes Designs
Think inside the box! ProActive Secure Systems

I'm on-line therefore I am.
JimmyRopes



QuestionGetting an error when trying to upload a document Pin
JimmyRopes30-Jan-13 2:35
professionalJimmyRopes30-Jan-13 2:35 
AnswerRe: Getting an error when trying to upload a document Pin
Ingo30-Jan-13 2:50
memberIngo30-Jan-13 2:50 
GeneralRe: Getting an error when trying to upload a document Pin
JimmyRopes30-Jan-13 4:03
professionalJimmyRopes30-Jan-13 4:03 
AnswerRe: Getting an error when trying to upload a document Pin
Ingo30-Jan-13 4:55
memberIngo30-Jan-13 4:55 
AnswerRe: Getting an error when trying to upload a document Pin
Ingo30-Jan-13 2:57
memberIngo30-Jan-13 2:57 
GeneralRe: Getting an error when trying to upload a document Pin
JimmyRopes30-Jan-13 4:05
professionalJimmyRopes30-Jan-13 4:05 
QuestionRequest for Sharepoint tutorial links Pin
obalesu28-Jan-13 18:18
memberobalesu28-Jan-13 18:18 
AnswerRe: Request for Sharepoint tutorial links Pin
Ingo28-Jan-13 21:13
memberIngo28-Jan-13 21:13 
QuestionCan CAML query handle multiple lists? Pin
Clark Kent12328-Jan-13 5:35
professionalClark Kent12328-Jan-13 5:35 
AnswerRe: Can CAML query handle multiple lists? Pin
Ingo28-Jan-13 21:17
memberIngo28-Jan-13 21:17 
GeneralRe: Can CAML query handle multiple lists? Pin
Clark Kent12329-Jan-13 1:34
professionalClark Kent12329-Jan-13 1:34 
QuestionThrowing an exception when trying to attach a document to a list item Pin
JimmyRopes25-Jan-13 2:34
professionalJimmyRopes25-Jan-13 2:34 
AnswerRe: Throwing an exception when trying to attach a document to a list item Pin
Aptiva Dave31-Jan-13 5:07
memberAptiva Dave31-Jan-13 5:07 
GeneralRe: Throwing an exception when trying to attach a document to a list item Pin
JimmyRopes31-Jan-13 13:30
professionalJimmyRopes31-Jan-13 13:30 
GeneralRe: Throwing an exception when trying to attach a document to a list item Pin
JimmyRopes7-Feb-13 2:31
professionalJimmyRopes7-Feb-13 2:31 
QuestionHo to Enable Titlle Column in Document Library using power shell in sharepoint 2010 Pin
ps4124-Jan-13 18:21
memberps4124-Jan-13 18:21 
AnswerRe: Ho to Enable Titlle Column in Document Library using power shell in sharepoint 2010 Pin
Ingo24-Jan-13 22:06
memberIngo24-Jan-13 22:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.