![]() |
Array-Problem in Prozedur
Delphi-Quellcode:
In dieser Prozedur kam beim Compilieren der Fehler: Incompatible Types bei der SetLength-Zeile. Warum? uNd Wie kann ich es anders lösen wenn es prinzipiell nmicht geht?
procedure sharpPath(var Path: array of TPt);
var i, k, newlength, letzter: integer; {...} begin {...} SetLength(Path, newlength); {...} end; schonmal danke für die zahlreichen Antworten :) |
Re: Array-Problem in Prozedur
Hallo simlei,
du mußt das Array als Typ vereinbaren:
Delphi-Quellcode:
Gruß Hawkeye
type
TPtArray = array of TPt; procedure sharpPath(var Path: TPtArray); |
Re: Array-Problem in Prozedur
Danke!
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 13:00 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 by Thomas Breitkreuz