Shift - Click / Control - Click - WeOnlyDo Discussion board

Shift - Click / Control - Click (wodFtpDLX / wodFtpDLX.NET)

by Anita, Friday, August 08, 2014, 20:24 (3548 days ago) @ wodSupport

I don't think I know how to do what you suggested. This is what I tried:

long ll_count, rc
string remote_path
oleobject diritems

remote_path = ole_ftp.object.RemotePath
ll_count = 3

diritems = create oleobject
rc = diritems.ConnectToNewObject("WeOnlyDo.DirItems")
ole_ftp.object.ListDir(remote_path)
ll_count = DirItems.Count
DESTROY diritems

This is in the click event. There are 6 files in my folder on my ftp server. I know I'm successfully creating the object because I'm not getting any error messages. Also, ll_count returns 0 instead of 3, so this tells me that DirItems.Count = 0. I just don't think the object is populated with anything.

I tried calling ListDir() both before and after I created the new object. I still get 0 as my DirItems.Count


Complete thread: