What are the consequences of not checking for equals in a listbox comparerows event?

In other words, can I get away with faster code like this:

    If a > b then
      result = 1 // Row 1 is bigger
    else
      result = -1 // Row 2 is bigger
    End If



or do I have to do:

    If a = b then
      result = 0 // Rows are equal
    elseif a > b then
      result = 1 // Row 1 is bigger
    else
      result = -1 // Row 2 is bigger
    End If


I'm sure there's a simple answer for this.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to