Einzelnen Beitrag anzeigen

DrTosh

Registriert seit: 3. Dez 2015
7 Beiträge
 
#1

2DArray in der Parameterübergabe erstellen??

  Alt 17. Dez 2015, 13:37
Guten Tag,
ich frage mich ob ich ein 2DArray direkt in die Parameterübergabe eintragen kann.

Beispiel

Code:
type
  T2DControls = Array of Array of TControl;

procedure pDo1D(lCs: Array of TControl); // das habe ich
procedure pDo2D(lCs: T2DControls); // das möchte ich

procedure Click;
begin
  pDo1D([lControl1, lControl2, lControl3, ...]); // Das geht
  pDo2D(/*genau hier weiß ich nicht wie es geht */);
end;
folgendes habe ich probiert:
pDo2D([[lControl1, lControl2, lControl3, ...], [lControl1, lControl2, lControl3, ...]]);
pDo2D(([lControl1, lControl2, lControl3, ...], [lControl1, lControl2, lControl3, ...]));
pDo2D([(lControl1, lControl2, lControl3, ...), (lControl1, lControl2, lControl3, ...)]);


kann mir da jemand helfen?

Geändert von DrTosh (17. Dez 2015 um 13:41 Uhr)
  Mit Zitat antworten Zitat