lazreport: using Screen.DataModules

git-svn-id: trunk@14332 -
This commit is contained in:
mattias 2008-02-29 20:13:17 +00:00
parent d00602020a
commit b093045c3b

View File

@ -369,7 +369,7 @@ begin
begin
s1 := Copy(Name, 1, n - 1); // module name
s2 := Copy(Name, n + 1, 255); // component name
Owner := Application.FindComponent(S1); //FindGlobalComponent(s1);
Owner := FindGlobalComponent(s1);
if Owner <> nil then
Result := Owner.FindComponent(s2);
end;
@ -423,8 +423,8 @@ begin
{$IFDEF DebugLR}
DebugLn('frGetComponents 2');
{$ENDIF}
// for i := 0 to Screen.DataModuleCount - 1 do
// EnumComponents(Screen.DataModules[i]);
for i := 0 to Screen.DataModuleCount - 1 do
EnumComponents(Screen.DataModules[i]);
with Screen do
begin