SRL Archive - OSR Help

Passing a Function through to another function?


Mat

2012-12-17 16:31:25

Say I have a Shutdown, function that checks if its logged in if it isn't re logs and re runs that set function/procedure.
How can I pass the function back through?
like Shutdown(Function Name);
Thanks
Mat

Sin

2012-12-17 16:46:21

Try using Labels?

Brandon

2012-12-17 17:04:39


Procedure Shutdown(Name: Function: Boolean);
Begin
Name();
End;

Function Name: Boolean;
Begin
Result := False;
End;

Begin
Shutdown(@Name);
End.