Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 792519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T22:00:22+00:00 2026-05-14T22:00:22+00:00

As much I know – Subroutines are with Private access mode to its parent

  • 0

As much I know – Subroutines are with Private access mode to its parent unction / procedure, right?

Is there any way to access them from “outer-world” – dpr or other function / procedure in unit?

Also – which way takes more calcualtion and space to compiled file?

for example:

function blablabla(parameter : tparameter) : abcde;
 procedure xyz(par_ : tpar_);
 begin
  // ...
 end;
begin
 // ...
end;

procedure albalbalb(param : tparam) : www;
begin
 xyz(par_ : tpar_); // is there any way to make this function public / published to access it therefore enabling to call it this way?
end;

// all text is random.

// also, is there way to call it from DPR in this manner?

// in C++ this can be done by specifing access mode and/or using "Friend" class .. but in DELPHI?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T22:00:23+00:00Added an answer on May 14, 2026 at 10:00 pm

    Note: Embedded Routines <> Private/Protected Methods.

    Embedded routines i.e. routines inside routines can not be accessed by external routines.
    You have posted an example of an Embedded routine, I also heard them called Internal Routines.

    Here is another example:

    procedure DoThis;
    
    function DoThat : Boolean;
    begin
      // This Routine is embedded or internal routine.
    end;
    begin
    
    // DoThat() can only be accessed from here no other place.
    
    end;
    

    Regardless of visibility, methods on classes, can be called using Delphi 2010 via RTTI. I have detailed how to do this in this article.

    If you are in the same Unit methods on a class can be accessed by any other code regardless of visibility, unless they are marked with Strict Private. This Question has more details and good example code in the accepted answer.

    If you are in two different units you can use the Protected Method Hack to access the protected methods. Which is detailed in detailed in this article.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I don't know much about the CIL, except that there is metadata in assemblies
I donot know much about files and its related security. I have a LOT
I don't know much about assembly, but I am pretty sure that there are
I don't know much about jquery but I know this is the only way
hi people I don't know much about ajax - jquery. And right now I
Is there a ColdFusion equivalent of phpinfo()? I don't know much about ColdFusion except
I don't know much about poking at servers, etc, but in light of the
I don't know much about multimedia development and am having some trouble comparing Silverlight
I don't know much css or html, so I have a question about taking
i don't know much about IIS, except it's a web server (just like apache)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.