How to Pass a function to a procedure or vice versa?



How to Pass a function to a procedure or vice versa?..

Answer / Satyendra Gupta

To pass a function as a parameter to a procedure in Delphi, you can use the following syntax:nprocedure MyProcedure(const Function: function);nvar FunctionVar: function;nBeginn FunctionVar := YourFunction;n MyProcedure(FunctionVar);

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Delphi Interview Questions

How to Switch between different data sources?

1 Answers   Wipro,


Can you drag and drop existing SQL structures directly onto a form?

1 Answers  


How to Make text background transparent?

1 Answers  


How to change the shape of your forms?

1 Answers  


How to change a specific IDAPI configuration setting?

1 Answers  


How to display an application associated icons?

1 Answers  


How to Create NonMaintained or .NDX indexes on dBASE Tables?

1 Answers  


How much disk space, memory, etc, do I need to run Delphi?

1 Answers  


How to Check for NULL in OnUpdateData handler ?

1 Answers  


Where is TReport in Delphi 6?

1 Answers  


How to Disable a radio button in a TRadioGroup?

1 Answers  


How to Pass a function to a procedure or vice versa?

1 Answers  


Categories