Hi everyone,
I have put a function in an application, to convert a fieldtype value to a string, that I found on the web.
function FldToStr(const Value : TFieldType) : String;
begin
Case Value of
ftUnknown : FldToStr := 'Unknown';
(etc.)
(etc.)
ftTimeStamp : FldToStr := 'TimeStamp';
ftFMTBcd : FldToStr := 'FMTBcd';
end;
end;
I get this error:
unit1.pas(51,1) Fatal: Syntax error, "identifier" expected but "BEGIN" found
The error detector highlites the code-line with the word 'begin'.
Would appreciate help on getting it right.
Thanks!