Results 1 to 6 of 6

Thread: what are subroutines and subprocedures?{resolved}

  1. #1

    Thread Starter
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    Resolved what are subroutines and subprocedures?{resolved}

    Does anyone know what this is? I googled this and couldn't find anything helpful, so maybe someone here can tell me what they are.
    Last edited by System_Error; Nov 9th, 2004 at 06:18 AM.

  2. #2
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418
    As far as i remember a sub-procedure does not return a value. I remember using sub-procedures when i programmed in Visual Basic 5 and 6 a long time ago.

  3. #3

    Thread Starter
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111
    I found out yesterday that subroutines and subprocedures are just programming jargon for methods. I was thinking it was something diffrent though. Thanks for your input.

  4. #4
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418
    No problem. Yeah it's just more MS BS.

  5. #5

    Thread Starter
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111
    Originally posted by Dilenger4
    Yeah it's just more MS BS.
    I couldn't have said it any better.

  6. #6
    Frenzied Member
    Join Date
    Aug 2000
    Location
    O!
    Posts
    1,177
    Originally posted by Dilenger4
    No problem. Yeah it's just more MS BS.
    I like to bash Microsoft as much as the rest of you, but in their defense, these terms were in use long before anyone ever heard of Bill and/or his company.

    Method, subroutine, function, procedure, subprocedure - these are all terms for a block of code that can be called from any place in your code. In today's world of OOP, we use the term method. Thirty years ago, when I started coding, function and subroutine/procedure were the common terms.

    Subprocedure generally refers to a subroutine that is nested within a subroutine. Some languages (that I have used) that support this are PL/I and Pascal. Variables declared in the subroutine are 'global' to the subprocedure, but variables declared in the subprocedure are not available to the subroutine. Also, the subprocedure can only be called by its 'parent' subroutine.

Posting Permissions

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



Click Here to Expand Forum to Full Width