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 7883605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:34:36+00:00 2026-06-03T04:34:36+00:00

I have decalred type TProcedure = procedure(const messageText : String) of object; and later

  • 0

I have decalred

type  TProcedure = procedure(const messageText : String) of object;

and later have a variable of that type decodeProcedure : TProcedure; which gets assigned in various places.

When I am stopped on a breakpint, how can I see which procedure the variablle is pointing to?

If I Debug/evaluate or add watch I get an error E2035 Not enough actual parameters

(Delphi XE 2)

  • 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-06-03T04:34:37+00:00Added an answer on June 3, 2026 at 4:34 am

    You can evaluate the address of the decodeProcedure method using the @ operator and adding that expression to the watch list windows, to see to which procedure points you can use the local variables window.

    try this code

    {$APPTYPE CONSOLE}
    
    {$R *.res}
    
    uses
      System.SysUtils;
    
    type
      TProcedure = procedure(const messageText : String) of object;
      TFooClass = class
         decodeProcedure  : TProcedure;
       public
         procedure Bar(const messageText : String);
         procedure DoIt;
      end;
    
    Var
      F : TFooClass;
    { TFooClass }
    
    procedure TFooClass.Bar(const messageText: String);
    begin
      Writeln(messageText);
    end;
    
    procedure TFooClass.DoIt;
    begin
      if Assigned(decodeProcedure) then //put a break point here
       decodeProcedure('Hello');
    end;
    
    begin
      try
         F:=TFooClass.Create;
         try
           F.decodeProcedure:=F.Bar;
           F.DoIt;
         finally
          F.Free;
         end;
      except
        on E: Exception do
          Writeln(E.ClassName, ': ', E.Message);
      end;
    end.
    

    And this a sample IDE screenshoot

    enter image description here

    As you see the local variables window shows which the decodeprocedure points to the TFooClass.Bar method.

    UPDATE
    You can also add the Self expression to the watch list to get the same results

    enter image description here

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

Sidebar

Related Questions

I have a table variable that is being passed into a procedure. I would
I am using mysql 5.0. I have a stored procedure which gets all the
I am assigning a string to a custom type I have declared, which I
I have a type myType declared with a member procedure insert_obj . When i
I have a class level price variable decalred inside a page, like this: public
We have an Oracle type that's declared as such: CREATE OR REPLACE TYPE its_accountarray;
I have declared the following enum type in which I want the first member
Have a question about stored procedure: How to retrieve the variable's value from stored
I have a java form in which i have declared different variables of type
I am using c# I have got below string in my variable. string results

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.