为何出错?
Synchronize(test('sss'));
procedure TPickData.test(str:string);
begin
frm_Main.Caption:=str;
end;错误:[Error] PickData.pas(102): E2250 There is no overloaded version of 'Synchronize' that can be called with these arguments
Synchronize(test('sss'));
procedure TPickData.test(str:string);
begin
frm_Main.Caption:=str;
end;错误:[Error] PickData.pas(102): E2250 There is no overloaded version of 'Synchronize' that can be called with these arguments
我也遇到这个问题,我也不知道为什么。但是解决的方法可以是这样,把test定义成没有参数的函数,如果楼主知道是什么原因的话,说一下。
呵呵,原因就是Synchronize不能接受有参数的过程。解决方法你的完全正确。