![]() |
Array einem Array zuordnen
Hallo,
ich würde gerne folgendes "umsetzen":
Delphi-Quellcode:
Der Fehler lautet "Inkompatible Typen" :gruebel:
type
TCell = record number:integer; width:integer; height:integer; end; ... var cellsalt:array[1..9,1..9] of TCell; cells:array[1..9,1..9] of TCell; ... procedure bla(); begin cellsalt := cells; end; Kann mir jemand helfen? :cry: Danke schonmal! Johannes |
Re: Array einem Array zuordnen
Hi Johannes,
Delphi weis in deinem Code nicht, dass beide Variablen eigentlich vom gleichen Typ sind, da sie erstmal nur irgendwelche Arrays sind. Leg einfach noch einen Typ an, zB TCellArray = array[1..9,1..9] of TCell; und benutze bei den Variablen dann diesen gemeinsamen Typ. Gruß, Chris |
Re: Array einem Array zuordnen
Zitat:
LG Mario |
Alle Zeitangaben in WEZ +1. Es ist jetzt 22:21 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz