Results 1 to 7 of 7

Thread: Calling Procedures before they are Declared

  1. #1
    Join Date
    May 2007
    Location
    baltimore, md
    Posts
    836
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default Calling Procedures before they are Declared

    I remember there was a way to do this but can someone tell me how.

  2. #2
    Join Date
    Jan 2007
    Location
    Kansas
    Posts
    3,760
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    I believe it is "Foward". You declare the params of the procedure then add "Foward" to the end of it. That's just a guess that I have seen in some peoples scripts.


  3. #3
    Join Date
    Feb 2006
    Location
    Helsinki, Finland
    Posts
    1,395
    Mentioned
    30 Post(s)
    Quoted
    107 Post(s)

    Default

    Code:
    procedure Forwarded; forward;
    
    procedure RunForwarded;
    begin
      Forwarded;
    end;
    
    procedure Forwarded;
    begin
      WriteLn('It works! :)');
    end;
    
    begin
      RunForwarded;
    end.
    There you go..

  4. #4
    Join Date
    Jan 2007
    Location
    Kansas
    Posts
    3,760
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Woot I was right and just guessed


  5. #5
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Oooh, this is cool

    Just learned something new

  6. #6
    Join Date
    May 2007
    Location
    baltimore, md
    Posts
    836
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    Thanks everyone and jason2gs when are you leaving for florida and where are you staying im goin to florida in like a week

  7. #7
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Next... Friday? I think it's like Saturday afternoon.

    We're going to Orlando, staying there for a week, coming back in time for a weekend

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. It has been declared:
    By P1nky in forum News and General
    Replies: 104
    Last Post: 11-11-2008, 06:51 PM
  2. What does it mean declared players?
    By fre in forum OSR Help
    Replies: 3
    Last Post: 05-18-2008, 10:28 AM
  3. Calling procedures
    By eFox in forum OSR Help
    Replies: 2
    Last Post: 10-27-2007, 10:27 AM
  4. Calling procedures From Senders
    By SKy Scripter in forum OSR Help
    Replies: 3
    Last Post: 02-21-2007, 12:36 AM

Posting Permissions

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