| Dart Home | PowerTCP FTP for ActiveX | Custom Development | Reply | PowerTCP FTP for ActiveX Topics | Forums |
| Author | Forum: PowerTCP FTP for ActiveX Topic: Optional parameters not working |
| thejoker From: Buenos Aires, Argentina Posts: 6 Member Since: 12/11/02 |
posted September 24, 2004 5:33 PM Hi as I wrote on the other topic, I'm using PowerTCP Ftp ActiveX with a C# Application. My problem is that when I import the control into Visual Studio .NET and use the Object Browser to browser the methods, I don't see any overloaded version of the method, for example Login method gives me an error if I don't put the 5 parameters. Do you know what can be happening and how to solve it? Thanks, Diego. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted September 24, 2004 6:55 PM ActiveX controls can't have overloaded methods. They use the concept of optional parameters. C# does not support optional parameters (like VB) so you have to put in something for each parameter. If the parameter is a string use "", if it's a number use 0, if it's neither use null. I hope this answers your question. |
| Reply | PowerTCP FTP for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|