Hi everyone,
I'm discovering the AL extensions recently and I came across a problem when converting CAL to AL.
The problem is that I cant use File rec anymore so how can I replace it? this is an exemple of an obsolete code in the AL code :
procedure CheckPathExist(PathToCheck_P: Text[1024]): Boolean
var
File_L: Record File;
(The type or method 'File' cannot be used for 'Extension' development)
begin
File_L.RESET;
File_L.SETFILTER(Path, PathToCheck_P);
File_L.SETRANGE("Is a file", FALSE);
IF File_L.ISEMPTY THEN
EXIT(FALSE)
ELSE
EXIT(TRUE);
end;
Thanks in advance!
Answers
"target": "Internal",
to app.json when you are using the on premise version