Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi Control aus dll Problem??? (https://www.delphipraxis.net/136944-control-aus-dll-problem.html)

Bernd29bln 10. Jul 2009 20:13


Control aus dll Problem???
 
Hallo,

Ich habe 2 Panels auf meiner dll Form. Wenn ich sie auf rufe bekomme ich eine Fehler Meldung "Listenindex überschreitet Maximum"

Mein Code:

Delphi-Quellcode:
  if not Assigned(FLoadedForm) then
  begin
    lMyFormClass := GetProcAddress(FLibHandle, 'MyFormClass');
    if @lMyFormClass <> nil then
    begin
      FLoadedForm := lMyFormClass.Create(nil);
       For i:=0 to FLoadedForm.ControlCount -1 do

        FLoadedForm.Controls[i].Parent := ScrollBox1;

       end;
    end;
  end;
Habt ihr ne Idee?

Gruß Bernd

Bernd29bln 10. Jul 2009 21:24

Re: Control aus dll Problem???
 
Danke hab den Fehler gefunden. Mit downto gehts.

Gruß Bernd


Alle Zeitangaben in WEZ +1. Es ist jetzt 03:27 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