Einzelnen Beitrag anzeigen

Benutzerbild von nachti1505
nachti1505

Registriert seit: 7. Apr 2007
188 Beiträge
 
Delphi 7 Enterprise
 
#13

AW: Hilfe mit Canvas?

  Alt 20. Mai 2014, 09:01
So richtig passt das hier nicht her - aber wie werden Namenskollisionen im with eigentlich aufgelöst?

Delphi-Quellcode:
TFoo = class
  property Foo2: TFoo2;
  procedure DoSomething;
end;

TFoo2 = class
  property Bar: TBar;
  procedure DoSomething;
end;

TBar = class
  procedure DoSomething;
end;

Foo: TFoo;
with Foo do
  with Foo2 do
    with Bar do
      DoSomething;
Was wird aufgerufen? Mein Tipp wäre doSomething von TBar?
  Mit Zitat antworten Zitat