Results 1 to 2 of 2

Thread: understanding the code

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Posts
    8

    Post

    what does this code mean...

    For Each oRow In tabItems.Row
    If Trim$(tabItems.Cell(oRow.Index, 1)_ <>""Then
    bAnyItms = True
    Exit For

    Thanxs

  2. #2
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111

    Post

    For Each oRow In tabItems.Row '(makes a loop = to the number of 'oRow's in tabItems)

    If Trim$(tabItems.Cell(oRow.Index, 1)_ <> "" Then '(If the tabItems.Cell(oRow.index, 1) trimed(spaces removed from either sides of the string) then there's a string so make bAnyItms = true)

    bAnyItms = True 'I think you know what this does
    Exit For '(exit the loop)

    ------------------
    DiGiTaIErRoR
    VB, QBasic, Iptscrae, HTML
    Quote: There are no stupid questions, just stupid people.

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