| Dart Home | PowerTCP FTP for .NET | Custom Development | Reply | PowerTCP FTP for .NET Topics | Forums |
| Author | Forum: PowerTCP FTP for .NET Topic: Error in Sample Code |
| monty0018 From: oklahoma city, OK USA Posts: 6 Member Since: 12/03/03 |
posted December 3, 2003 2:02 PM In the Help topic "Storing a single file asynchronously", there is a bug in the sample code. If e.Exception Is Nothing then Debug.WriteLine("Successfully stored file " + e.File.LocalFileName) Debug.WriteLine("File now on server as " + e.File.RemoteFileName) Debug.WriteLine("Data transferred " + e.File.Count) Else Debug.WriteLine("Error: " + e.Exception.Message); End If Using + for string concatenation causes an exception in the 3rd debug.writeline. Switching the + to & works properly. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted December 3, 2003 2:24 PM Thanks. |
| monty0018 From: oklahoma city, OK USA Posts: 6 Member Since: 12/03/03 |
posted December 3, 2003 2:36 PM I just seen the ; on the end of the 4th Debug.Writeline. This code was copied from the VB section. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted December 3, 2003 3:41 PM Thanks, In the future, can you please just click the link at the bottom of the help topic that says "Send comments on this topic"? That way the report will go directly to our documentation department. |
| Reply | PowerTCP FTP for .NET Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|