Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why it doesn't work ? #247

Open
relativ opened this issue May 18, 2021 · 0 comments
Open

why it doesn't work ? #247

relativ opened this issue May 18, 2021 · 0 comments

Comments

@relativ
Copy link

relativ commented May 18, 2021

ftp.OnStatus := @onstatus;

i am receiving , invalid number of parameters error.

i need help

thanks

Program IFSTest;

	
	procedure OnStatus (ASender: TObject;  const AStatusText: string);
	begin
		echo (AStatusText);
	end;

var
	ftp: TFTP;
	sStatus: TStringList;

Begin
	ftp:= TFTP.Create();
	ftp.OnStatus := @OnStatus;
	ftp.Host := '94.73.148.47';
	ftp.Port:=21;
	ftp.Username := 'root';
	ftp.Password := 'test';
	ftp.Connect;
	ftp.Login;
	ftp.List;
	var i: integer;
	for i:= 0 to ftp.ListResult.Count -1 do
	begin
		echo(ftp.ListResult[i]);
	end;

	ftp.Disconnect;
	ftp.free;
	
End.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant