This question already has an answer here:
how to modify a function so it returns an array of strings [on hold]
2 answers
I have a list of IDs stored in a ListView and I need a way to populate the ListView items in array and loop the strings in this function. The 2nd problem is, which I’m not sure how to say that, how to link the result with the loop?**
function TdmPush.GetDeviceRegistrationId: string;
begin
{$IFDEF ANDROID}
result := gcmn.RegistrationID;
{$ELSE} result := ‘Mobile Test’;
{$ENDIF}
end;