Results 1 to 3 of 3

Thread: Check returned records

Threaded View

  1. #1

    Thread Starter
    Addicted Member soluga's Avatar
    Join Date
    Dec 2005
    Location
    Manchester (Uk)
    Posts
    211

    Resolved Check returned records

    I have a function that adds to my collection, but I dont want to add it to my collection if more than one result is returned, how can I check how many records are being returned in the dataset ??
    VB Code:
    1. If e.Column.Key = "productRangeCode" Then
    2.                 If _rangeCode.Length > 0 Then
    3.                     Dim _component As New Component
    4.                     _component.Load(_rangeCode) ' This calls my load function in my class
    5. 'I need to check here how many are returned before adding to my collection ??????
    6.                         product.Formulation.Add(_component)
    7.                         GridExFormula.Refetch()
    8.                                     End If

    Thanks
    Last edited by soluga; May 22nd, 2006 at 06:54 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width