How to detected item isn't selected in list view 
Author Message
 How to detected item isn't selected in list view

This is a multi-part message in MIME format.

------=_NextPart_000_01BC8141.1E95C380
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Pratya,

IF Not lvShowLog.SelectedItem Is Nothing
        Then ShowLogInfo(lvShowLog.SelectedItem.Text)
EndIf

--

CAE Electronics Ltd
St-Laurent, Quebec, Canada



Quote:
> Hi All
>    I writing the code that use list view control

> Private Sub lvShowLog_DblClick()
>    call ShowLogInfo(lvShowLog.SelectedItem.Text)
> End Sub

>    But it will occur error that if there is no list item be selected.
> (lvShowLog.SelectedItem = Nothing in debug mode)
> How can I detected this error. I try to use isnull function but it
doesn't
> work

> Thank You
> Pratya


------=_NextPart_000_01BC8141.1E95C380
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<html><head></head><BODY bgcolor=3D"#FFFFFF"><p><font size=3D2 =
color=3D"#000000" face=3D"Arial">Pratya,<br><br>IF Not =
lvShowLog.SelectedItem Is Nothing<br>&#009;Then =
ShowLogInfo(lvShowLog.SelectedItem.Text)<br>EndIf<br><br>-- <br>Sylvain =

color=3D"#000000">)<br>CAE Electronics Ltd<br>St-Laurent, Quebec, =
Canada<br><br><br><br>Pratya &lt;<font =

wrote in article &lt;<font =

color=3D"#000000">&gt;...<br>&gt; Hi All<br>&gt; &#009;I writing the =
code that use list view control<br>&gt; <br>&gt; Private Sub =
lvShowLog_DblClick()<br>&gt; &#009;call =
ShowLogInfo(lvShowLog.SelectedItem.Text)<br>&gt; End Sub<br>&gt; =
<br>&gt; &#009;But it will occur error that if there is no list item be =
selected.<br>&gt; (lvShowLog.SelectedItem =3D Nothing in debug =
mode)<br>&gt; How can I detected this error. I try to use isnull =
function but it doesn't<br>&gt; work<br>&gt; <br>&gt; Thank You<br>&gt; =

color=3D"#000000"><br>&gt; </p>
</font></font></font></font></font></font></font></font></font></body></h=
tml>
------=_NextPart_000_01BC8141.1E95C380--



Sun, 12 Dec 1999 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. list view no selected item

2. List View - Getting Selected Item

3. VB 5 List View Double Click to select an item

4. List View: Selected Item Count

5. List View Top Item in Large Icon View

6. Display Bitmaps in Sub Items and column Headers of List View During Report View

7. Selecting items in a DB-list and passing fields from selected rec to a control

8. selecting items in a Data bound list and passing a field content for the selected record

9. Selecting Items in a SELECT List

10. <SELECT> List Box Isn't Refreshed After Item Is Added

11. <SELECT> List Box Isn't Refreshed After Item Is Added

12. VB image list handle isn't fully accessible in VC++ ActiveX thru COM call

 

 
Powered by phpBB® Forum Software