Autor Beitrag
woully
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 78



BeitragVerfasst: Mo 25.02.08 10:58 
Hallo zusammen,

ich habe eine Funktion die mir ein mehrdimensionnales Byte array als var zurückgeben soll :
ausblenden Delphi-Quelltext
1:
Function TMessage.ReadQueuesMessagesInByteArray(var wNumberOfMessages: Word;var MessagesBuffer: array of array of byte): Byte;					

Beim Kompilieren bekomme ich die Meldung "Bezeichner erwartet, aber Array gefunden"..

Ein Eindimensionnales array funktionniert perfekt.

Was mache ich falsch ?

danke
Woully

Moderiert von user profile iconNarses: Delphi-Tags hinzugefügt
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mo 25.02.08 11:02 
Du musst einen Typ dafür deklarieren:
ausblenden Delphi-Quelltext
1:
2:
type
  TMyArray = array of array of XY;
Mit diesem Typ klappt das dann ;-).
woully Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 78



BeitragVerfasst: Mo 25.02.08 11:51 
Perfekt.

danke dir