Autor Beitrag
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Mo 08.05.06 17:45 
Hallo,

ich will folgendes machen:
ausblenden Delphi-Quelltext
1:
function GetCharIDs(c:char;s:string) : array of integer;					

Aber beim Compilieren bekomme ich den Fehler:
Zitat:

[Fehler] main.pas(41): Bezeichner erwartet, aber 'ARRAY' gefunden

Wer kann helfen?

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Mo 08.05.06 17:49 
Definiere dir für die Rückgabe einen Typ, dann sollte es gehen.

_________________
Markus Kinzler.
Horschdware
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 744
Erhaltene Danke: 54

Win XP Pro, Win 7 Pro x64
Delphi 7, Delphi XE, C++ Builder 5, SAP R/3
BeitragVerfasst: Mo 08.05.06 17:49 
So:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
type
   TMyArray = array of integer;

...


function MyFunction(param1 : TMyArray) : TMyArray;
begin

end;

_________________
Delphi: XE - OS: Windows 7 Professional x64
Marco D. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Mo 08.05.06 17:53 
Ok danke.

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot