Results 1 to 3 of 3

Thread: Passing a Function through to another function?

  1. #1
    Join Date
    Nov 2011
    Posts
    1,589
    Mentioned
    9 Post(s)
    Quoted
    17 Post(s)

    Default Passing a Function through to another function?

    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



    ^^

  2. #2
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    Try using Labels?

  3. #3
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

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

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

    Begin
      Shutdown(@Name);
    End.
    I am Ggzz..
    Hackintosher

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •