[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: difference between
[Thread Prev] | [Thread Next]
- Subject: Re: difference between
- From: Bruce Steers <bsteers4@xxxxxxxxx>
- Date: Sat, 10 Oct 2026 16:45:07 +0100
- To: user@xxxxxxxxxxxxxxxxxxxxxx
>
>
> I finally used the suggestion of Jussi
> If IsNull(PictureBoxQRCode.Image) = False Then
> that is more explicit (for me)
>
> Thank you all
>
Oops apologies for previous post i hit send before editing :-\
Was going to say how that has to be slower.
It;s essentially doing 2 tests, Isnull() tests if Image is null then =
False tests the result
the fastest test should simply be...
If PictureBoxQRCode.Image Then
I ran a simple test on a form that has no Me.Picture set...
Public Sub TestNow()
Dim bBol As Integer
For c As Integer = 0 To 100000
If IsNull(Me.Picture) = False Then Inc bBol
Next
End
Public Sub TestNow2()
Dim bBol As Integer
For c As Integer = 0 To 100000
If Me.Picture Then Inc bBol
Next
End
TestNow: 9,031
TestNow2: 7,355
Respects
BruceS
| difference between | valaquarus <valaquarus@xxxxxxxxx> |
| Re: difference between | Jussi Lahtinen <jussi.lahtinen@xxxxxxxxx> |
| Re: difference between | Jussi Lahtinen <jussi.lahtinen@xxxxxxxxx> |
| Re: difference between | valaquarus <valaquarus@xxxxxxxxx> |