Results 1 to 8 of 8

Thread: Forward?

  1. #1
    Join Date
    Aug 2007
    Location
    Georgia, U.S.
    Posts
    890
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Forward?

    I have seen quite a few scripts that have something like this in it:

    procedure Proggy; Forward;

    what does that do? i searched through tutorial island but couldnt find anything there.

  2. #2
    Join Date
    Jun 2007
    Location
    La Mirada, CA
    Posts
    2,484
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    it takes a procedure/function and makes it capable to be used earlier in the script then its declared...

    SCAR Code:
    function walktobank:Boolean; forward;

    fuction blah: Boolean;
    begin
    walktobank;
    end;

    function walktobank: Boolean;
    begin
    blah;
    end;

    see walktobank uses blah but blah uses walktobank so one has to come before the other...so you use forward so they can both be used

    "Failure is the opportunity to begin again more intelligently" (Henry Ford)


  3. #3
    Join Date
    Jan 2008
    Posts
    89
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    confusing looking at it for the first time, but i can see uses for it...

    muahahahhaha

    yours,
    prince

  4. #4
    Join Date
    May 2007
    Location
    Ohio
    Posts
    2,296
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    program LoL;

    procedure LoL; forward;
    procedure SayLoL;
    begin
      LoL;
    end;

    procedure LoL;
    begin
      Writeln('LoL');
    end;

    begin
      SayLoL;
    end.
    scar would see it as...
    SCAR Code:
    program LoL;

    procedure LoL;
    begin
      Writeln('LoL');
    end;
    procedure SayLoL;
    begin
      LoL;
    end;

    begin
      SayLoL;
    end.

  5. #5
    Join Date
    Aug 2007
    Location
    Georgia, U.S.
    Posts
    890
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks. now i have another question, how do i get the Script stat in my sig that has the custom variables?

  6. #6
    Join Date
    May 2007
    Location
    Ohio
    Posts
    2,296
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    umm... pm The_RS_Monkey
    ask him for teh link

  7. #7
    Join Date
    Jun 2007
    Location
    La Mirada, CA
    Posts
    2,484
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default


    "Failure is the opportunity to begin again more intelligently" (Henry Ford)


  8. #8
    Join Date
    Aug 2007
    Location
    Georgia, U.S.
    Posts
    890
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to Port Forward
    By kingarabian in forum Computer Help and Tutorials
    Replies: 16
    Last Post: 11-26-2008, 02:03 AM
  2. SotW moving forward a day
    By Torrent of Flame in forum Graphics Contests
    Replies: 4
    Last Post: 09-02-2008, 08:13 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
  •