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;

3.5
2
Nitro2k01 110 points

                                    unit Unit1;

interface

uses
  Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
  Vcl.Controls, Vcl.Forms, Vcl.Dialogs;

type
  TForm1 = class(TForm)
    Button1: TButton;
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation
////////////////////////////////////////////////////////////////////////
//constant arrays
const
 Numbers : array[1..9] of string = ('1','2','3','4','5','6','7', '8', '9');
 //you can also create and integer type array
 IntNumbs : array[1..5] of integer = (1, 2, 3, 4, 5);
//////////////////////////////////////////////////////////////////////
{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
end;

end.

3.5 (2 Votes)
0
3.5
2

                                    Numbers : array[1..9] of string;
{ArrayNaem} : Array[{Start}..{End}] of {Tipe of arr};

3.5 (2 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
delphi delete element from array declaring array delphi declare an array function delphi delphi remove element from array Creating an array delphi arrays delphi getting a variable from an array delphi delphi function return array removing an item from a array delphi declaring an array delphi delphi: arrays delphi delete from array delphi array of objects delphi basics arrays declare an array delphi array delphi tutorial delphi array in procedure delphi dynamic array delphi delete element in arrays delete array entry in delphi delphi remove item from array 2D arrays Delphi delphi tpair array howto delete from an array delphi delphi array of integer delete element of array delphi delphi how to make a array Delphi array index delphi static array how to store data in array delphi delphi static array can I use 0 as index make array delphi nice how to replace static array to enumerated array in delphi how to replace static array to enumurated array in delphi delphi working with arrays array of integer delphi delphi array of array of array delphi delphi create array declare an array in delphi how declare and array in delphi delphi how to assign string to array how to create an array delphi what is a string array delphi string array delphi delphi array of string delphi array string How to make an array in delphi How to declare an array in delphi delphy display arrayContent create an array in delphi without arrays in Delphi arrys in delphi delphi how to declare arrau delphi declare 3d array delphi arrays how to declare array in delphi using array in Delphi delphi basics how to output integer array delphi basics how to store values in integer array delphi basics how to store values in array array declare of a set of integer in delphi delphi declare array delphi string array How to create an array in delphi array delphi array in delphi delphi static multidimensional array delphi indexed array delphi array
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source