Hello everyone,
Is it possible to make a method that return an array in AL? For example, I have this method in a codeunit in AL:
procedure CalculatePrice(custCode: Code[20]; arrivalDate: Date; departureDate: Date; boardBasis: Code[20]; roomType: Code[20]; adults: Integer; children: Integer; children2: Integer; babies: Integer; language: Code[20]; resident: Boolean; promotion: Text[30]; onlineBooking: Boolean; OnlineBookingNo: Integer) ArrayAmount: array [100] of Text[250]
var
...
begin
...
end;
If I have the array "ArrayAmount" as a return value, it is marked as an error, that says: "Expected one of the application object keywords (table, tableextension, page, pageextension, pagecustomization, profile, codeunit, report, xmlport, query, controladdin, dotnet, enum, enumextension)", so, is it not possible to return an array in a method in AL?
Thank you,

Report
All responses (
Answers (