Answers for "delphi basics how to store values in array"

6

delphi array

const
   Days : array[1..7] of string = ('Mon','Tue','Wed','Thu','Fri','Sat','Sun');
 var
   i : Integer;
 begin
   for i := 1 to 5 do      // Show the weekdays
     ShowMessageFmt('Day %d = %s',[i,Days[i]]);
 end;
Posted by: Guest on July-10-2020

Browse Popular Code Answers by Language