AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Array-Problem in Prozedur

Ein Thema von simlei · begonnen am 12. Sep 2006 · letzter Beitrag vom 12. Sep 2006
Antwort Antwort
simlei

Registriert seit: 23. Nov 2005
119 Beiträge
 
Delphi 7 Professional
 
#1

Array-Problem in Prozedur

  Alt 12. Sep 2006, 14:53
Delphi-Quellcode:
procedure sharpPath(var Path: array of TPt);
var i, k, newlength, letzter: integer;
{...}
begin
 {...}
 SetLength(Path, newlength);
 {...}
end;
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?
schonmal danke für die zahlreichen Antworten
  Mit Zitat antworten Zitat
Hawkeye219

Registriert seit: 18. Feb 2006
Ort: Stolberg
2.227 Beiträge
 
Delphi 2010 Professional
 
#2

Re: Array-Problem in Prozedur

  Alt 12. Sep 2006, 15:02
Hallo simlei,

du mußt das Array als Typ vereinbaren:

Delphi-Quellcode:
type
  TPtArray = array of TPt;

procedure sharpPath(var Path: TPtArray);
Gruß Hawkeye
  Mit Zitat antworten Zitat
simlei

Registriert seit: 23. Nov 2005
119 Beiträge
 
Delphi 7 Professional
 
#3

Re: Array-Problem in Prozedur

  Alt 12. Sep 2006, 15:53
Danke!
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 14:09 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz