Hello,
Might be asking the impossible here, but I am wrestling hundreds of lines of code.
Is there a way to collapse large blocks of code in a single Unit/Form?
I have a main-form with a page control and 6-pages, each with hundreds of lines
Is there a way I can collapse all of the code for each page as I complete writing it's functionality? I do not want to use "include" files as that gets cumbersome swapping IDE-tabs.
I know I could include the sub-procedures within "procedure page_1" and collapse it, but then how do I access those internal procedures outside of the main procedure?
From this
case pc_main.ActivePageIndex of
0 : page_1;
1 : page_2;
end;
// Page_1
procedure page_1;
begin
end
procedure page1_stuff_a;
begin
end;
procedure page1_stuff_b;
begin
end;
procedure page1_stuff_c;
begin
end;
// Page_2
procedure page_2;
begin
end
procedure page2_stuff_a;
begin
end;
procedure page2_stuff_b;
begin
end;
procedure page2_stuff_c;
begin
end;
To this
case pc_main.ActivePageIndex of
0 : page_1;
1 : page_2;
end;
// Page 1
--collapsed
// Page 2
--collapsed