Einzelnen Beitrag anzeigen

Benutzerbild von Neutral General
Neutral General

Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
 
Delphi 10.2 Tokyo Professional
 
#2

Re: Arrays setzen ohne Array[Nummer]

  Alt 23. Mai 2010, 12:48
Hi,

Wenn das Array einen eigenen Typ hat also z.B.

Delphi-Quellcode:
type
  TIntArray = Array of Integer;
dann kannst du das so machen:

Delphi-Quellcode:
var arr: TIntArray;
begin
  arr := TIntArray.Create(1,2,3,4,5,6,7,8,9);
end;
Michael
"Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."
  Mit Zitat antworten Zitat