Sandeepan Kashyap
2014-10-09 07:17:55 UTC
hi,
Earlier, I called a function StringReturn (without a parameter passed) from Unit1, and it returned the value from Unit2 function and showed it over a popup to me without any issue.
However, now when I passes a parameter 'passedString', it's giving me the below error, not sure why, though I have passed the parameters in a correct format.
[Error] stringcheck.pas(27): Declaration of 'StringReturn' differs from previous declaration
Unit1
ShowMessage('Piece function-'+ obj.StringReturn(passedString));
Unit2
function TSharedFunctions1.StringReturn(passedString: string): string;
Thanks!
Sandeepan
Earlier, I called a function StringReturn (without a parameter passed) from Unit1, and it returned the value from Unit2 function and showed it over a popup to me without any issue.
However, now when I passes a parameter 'passedString', it's giving me the below error, not sure why, though I have passed the parameters in a correct format.
[Error] stringcheck.pas(27): Declaration of 'StringReturn' differs from previous declaration
Unit1
ShowMessage('Piece function-'+ obj.StringReturn(passedString));
Unit2
function TSharedFunctions1.StringReturn(passedString: string): string;
Thanks!
Sandeepan