By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,317 Members | 1,313 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,317 IT Pros & Developers. It's quick & easy.

Index out of Bounds on primaryGroupID

P: 1
For the life of me I can't remember how to get the array to handle the primaryGroupID for a console app. Here is what I have so far.

*array not included as I am currently researching available options(and no one seems to have an available answer on google)

Expand|Select|Wrap|Line Numbers
  1.  Dim Results As SearchResultCollection = objSearch.FindAll()
  2.             Dim objpgID As String
  3.             For Each Result As SearchResult In Results
  4.                 objpgID = Result.Properties("primaryGroupID").Item(0)
  5.                 Console.WriteLine(objpgID)
  6.                 Console.WriteLine(Result.Path)
  7.              Try
  8.                     'Array to handle primaryGroupID here.
  9.                 Catch ex As Exception
  12.                 End Try
Aug 12 '10 #1
Share this Question
Share on Google+
1 Reply

Expert 100+
P: 569
So, what is it exactly you want from us? :-)

Aug 17 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.