Код: Выделить всё
function MyFunc(str:String='default'):String;
но в лазурусе выдает ошибку
Код: Выделить всё
Fatal: Syntax error, ")" expected but "=" foundчто же делать?
Модератор: Модераторы
Код: Выделить всё
function MyFunc(str:String='default'):String;
Код: Выделить всё
Fatal: Syntax error, ")" expected but "=" foundКод: Выделить всё
function MyFunc(MyStr:String='default'):String;Код: Выделить всё
function ST(const S: string='Молча'): String;
implementation
{$R *.lfm}
function ST(const S: string='Молча'): String;
begin
if S = 'Молча' then Result := 'Да'
else Result := 'Нет';
end;