@paranoidgeek said:
I think the correct way is to use "abs(a-b) < 0.01" Where a,b are the floats, 0.01 is the ammount they can differ by.
That's what I try to do. I hope that's right. Now I'm off to read that pdf...
@paranoidgeek said:
I think the correct way is to use "abs(a-b) < 0.01" Where a,b are the floats, 0.01 is the ammount they can differ by.
I found this code, but not dealing with VB a lot, I don't know if it's a WTF or valid. Could you help me?
Thanks, Adam
Public Function ArrayHasElements(vArray As Variant) As Boolean
Dim iArraySize As Integer
On Error GoTo ArrayHasElements_Error
iArraySize% = UBound(vArray)
ArrayHasElements = True
Exit Function
ArrayHasElements_Error:
ArrayHasElements = False
Exit Function
End Function