mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 16:19:28 +02:00
lazreport: using Screen.DataModules
git-svn-id: trunk@14332 -
This commit is contained in:
parent
d00602020a
commit
b093045c3b
@ -369,7 +369,7 @@ begin
|
|||||||
begin
|
begin
|
||||||
s1 := Copy(Name, 1, n - 1); // module name
|
s1 := Copy(Name, 1, n - 1); // module name
|
||||||
s2 := Copy(Name, n + 1, 255); // component name
|
s2 := Copy(Name, n + 1, 255); // component name
|
||||||
Owner := Application.FindComponent(S1); //FindGlobalComponent(s1);
|
Owner := FindGlobalComponent(s1);
|
||||||
if Owner <> nil then
|
if Owner <> nil then
|
||||||
Result := Owner.FindComponent(s2);
|
Result := Owner.FindComponent(s2);
|
||||||
end;
|
end;
|
||||||
@ -423,8 +423,8 @@ begin
|
|||||||
{$IFDEF DebugLR}
|
{$IFDEF DebugLR}
|
||||||
DebugLn('frGetComponents 2');
|
DebugLn('frGetComponents 2');
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
// for i := 0 to Screen.DataModuleCount - 1 do
|
for i := 0 to Screen.DataModuleCount - 1 do
|
||||||
// EnumComponents(Screen.DataModules[i]);
|
EnumComponents(Screen.DataModules[i]);
|
||||||
|
|
||||||
with Screen do
|
with Screen do
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user