FTP directory listing >>Combo with ICP 
Author Message
 FTP directory listing >>Combo with ICP

Wondering what's the easiest way to dump a directory listing to a combo
box. I'm using VB 4.0 and the FTP control from the ICP. I can dump the
listing to a text box without any problems, but I'm not sure how to grab
each item in the list event individually.

TIA,
--
-----
Dan McGarry
Nunanet Communications
http://www.*-*-*.com/
********************************
My employer doesn't have an opinion on this....



Sun, 14 Feb 1999 03:00:00 GMT  
 FTP directory listing >>Combo with ICP

If I understand you correctly, I think you want to do something like this:

'example code to invoke the list method on the ftp control
Private Sub cmdList_Click()
        ' The ListItemNotify property must be set to True.
        FTP1.ListItemNotify = True
        FTP1.List "c:/"       ' Specify the remote machine's
                                                        ' root.to list.
End Sub

'code to handle the resulting events
Private Sub FTP1_ListItem(ByVal Item as FTPDirItem)
        ' This example returns only the file name of the
        ' item. Other properties of the FTPDirItem include:
        ' Attributes, Date, Details, and Size.
        listbox.additem Item.FileName
End Sub

I think item.filename will be type-compatible with listbox.additem.  I
would set listbox.sorted to TRUE before starting the listing - might as
well see things in order.

Opinions expressed herein are my own and may not represent those of my employer.



Mon, 15 Feb 1999 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. using The Shell Command >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

2. <<<<<<<<ComboBox>>>>>>>>>>>>

3. >>>>>>While Not rst.EOF

4. PSUDOCODE HELP >>>>>>>>>>>

5. >>>>> Serial Communications

6. VB5 >>>>> Academic Version

7. <<<<HELP- OLE container Control>>>>>>>>>

8. !!! URGENT HELP REQUIRED !!!>>>>>>>>

9. >>= bitwise operations >>

10. Please Help --------->>>>AppLink Problem

11. VB3 ->->->->VBDOS??

12. >>>> HELP WITH RUNTIME FILES

 

 
Powered by phpBB® Forum Software