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 |
How to Switch between different data sources?
Can you drag and drop existing SQL structures directly onto a form?
How to Make text background transparent?
How to change the shape of your forms?
How to change a specific IDAPI configuration setting?
How to display an application associated icons?
How to Create NonMaintained or .NDX indexes on dBASE Tables?
How much disk space, memory, etc, do I need to run Delphi?
How to Check for NULL in OnUpdateData handler ?
Where is TReport in Delphi 6?
How to Disable a radio button in a TRadioGroup?
How to Pass a function to a procedure or vice versa?