Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FTP Program to use with FoxPro
Message
From
16/11/1999 18:24:05
 
 
To
16/11/1999 18:15:36
Ed Gay
Computer Software Consultants
Bangor, Maine, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00291683
Message ID:
00291707
Views:
53
Well, and ActiveX is like a VFP class, it has methods and properties that you can use, and it may or may not be Visual. This one is not. A Sample for would be something like (I got this from a post here):
thisform.lblStatus.Visible=.T.
thisform.lblStatus.Caption = "Connecting to File Transfer Protocol Site..."
With Thisform.OleFTP
   .URL = "ftp://ftp.myFtpsite.com"
   .UserName = "myUser"
   .Password = "mypassword"
   do while (.StillExecuting)
      DoEvents
      ThisForm.Refresh
      Label3.Caption = "Connecting to File Transfer Protocol Site....."
   ENDDO

   lcExecute = ', "get ' + lcInFileName + ' ' + lcOutFileName +'"'
   thisform.lblStatus.Caption = "Transfer of Data in progress ...."
   .Execute (&lcExecute)
   do while (.StillExecuting)
      DoEvents
   enddo
   DoEvents
   thisform.lblStatus.Caption = "Transfer Completed"
   ThisForm.Refresh
   .Execute (, "QUIT")
EndWith
As you see, the only thing the user sees is a Label telling him whats happpening, the files to move and where to come from variables, you can either know these internally or allow the user to select them using somehitng as simple as a GETFILE()

That would be an ideal User Interface :-)

>Nope
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform