backanim

  JR-FileViewer
Properties   Methods Events
   

jrsoftlogo

                                   

ListItem

  Description:

Returns a ListItem by specifying its index

       
 

The ListItem returns some ListItem informations.

The ListItem supports some methods.

  ico_syntax Syntax:

FileViewer1.ListItem (nitem as long) [ = JRFileListItem]

         

ico_weitere   Remarks:


You can use this property to retrieve a ListItem shown in FileViewer by its index. The index is 1-based. When the index specified is greater than the number of items in FileView a NULL value is returned.

 

  ico_einstellungen Example:

       

You can use this property to enumerate all the items in the FileView as follows :

    Dim fli As JRFileListItem
    Dim ct As Long, i As Long
    ct = filev1.ItemCount
    For i = 1 To ct

    Set fli = filev1.ListItem(i)
    Debug.Print fli.DisplayName
    Next

     

The List Item Object returns the following informations:

                        Attributes (File_Attribute)
                       
DateCreated
                       
DateModified
                        DisplayName
                       
DosName
                       
Extension            
                       
FileName            
                       
FileSize
                       
FileTyp
                       
LastAccessed
                       
ListItemTyp (File Type)
                       
Path
                       
Selected
                       
TimeCreated
                       
TimeModified

                        Checked
                        UserData

Not useable:

                        DriveName

                        Key

                        IsLoading

                        IsDirty

The List Item Object supports the following Methods:

                        ExecuteShellCommand (Shellcommand)
                        EnsureVisible