Hello !!
I write this code :
// -----------------------------------------------
function fun1(const str: string): integer ;
begin
Result := 1 ;
end;
and in an other function I did :
// ----------------------------------------------------
procedure ExecSQL();
var
ret: integer ;
begin
if (ret:=fun1(BS_q1))=1 then
Exit;
end;
and it gives mes error message :
bsmusermanager.pas(298,10) Fatal: Syntax error, ")" expected but ":=" found
I've tried the following :
if ((ret:=fun1(BS_q1))=1) then
Exit;
but the same error message is given.
only the construction :
ret := fun(BS_q1);
if ret = 1 then
Exit;
PS: I'm new comer from Delphi, and I don't know if free pascal allow sach construction for if.
Thanks