davidchardonnet
Programmer
Hello,
I have compilation error: Constant Expression expected
on the following code:
site.set_country(Edit1.Text);
Does somedy knows why i have this error?
the 'site' variable is an object of the following Class;
//-------------------------------------------------
type
CSite = class(CObjet)
procedure set_country(p_country:string);
private
m_country:string;
end;
//-------------------------------------------------
procedure CSite.set_country(p_country:string);
begin
m_country:=trim(p_country);
end;
//-------------------------------------------------
Thank you
David
I have compilation error: Constant Expression expected
on the following code:
site.set_country(Edit1.Text);
Does somedy knows why i have this error?
the 'site' variable is an object of the following Class;
//-------------------------------------------------
type
CSite = class(CObjet)
procedure set_country(p_country:string);
private
m_country:string;
end;
//-------------------------------------------------
procedure CSite.set_country(p_country:string);
begin
m_country:=trim(p_country);
end;
//-------------------------------------------------
Thank you
David