Results 1 to 3 of 3

Thread: Calling procedures

  1. #1
    Join Date
    Oct 2007
    Posts
    24
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Calling procedures

    Ok I am trying to call a procedure which is lower down the page than the one I am calling from. How can I fix this because I cannot move either procedures :O



  2. #2
    Join Date
    May 2006
    Location
    Amsterdam
    Posts
    3,620
    Mentioned
    5 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by eFox View Post
    Ok I am trying to call a procedure which is lower down the page than the one I am calling from. How can I fix this because I cannot move either procedures :O

    Try this ;forward
    Howto use it?
    You find the procedure which you want to use, but is futher on the page. Then you copy the parameters and stuff like this.
    SCAR Code:
    Procedure DrawUpdate ( Sender : TObject ) ; Forward;
    Then you add ;forward; behind it. Now scar knows the function is located futher on the page . You must give it the same name and same parameters as the original though.
    Verrekte Koekwous

  3. #3
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ow thanks now i get why wt-fawaki did that thanks

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Calling Procedures before they are Declared
    By jhildy in forum OSR Help
    Replies: 6
    Last Post: 06-12-2007, 07:15 PM
  2. 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
  •