Executing a procedure

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • arumurali
    New Member
    • Mar 2013
    • 20

    Executing a procedure

    Executing a procedure is a tedious process i ever came across. Why can't we just run a procedure instead of declaring a seperate variable and compiling them for results. Every procedure is compiled in a different way according to the needs, what can be done for this?
  • rski
    Recognized Expert Contributor
    • Dec 2006
    • 700

    #2
    I am not sure what your problem is ...

    begin
    <run procedure with name>
    end;

    Comment

    • arumurali
      New Member
      • Mar 2013
      • 20

      #3
      My doubt is a silly one but Thanks for your time rski..!!

      I don't have any problem in compiling procedures, but my problem is compiling procedures, functions in a different way by initializing a variable and then getting the output. It makes me feel kindof uncomfortable.

      Comment

      • rski
        Recognized Expert Contributor
        • Dec 2006
        • 700

        #4
        but my problem is compiling procedures, functions in a different way by initializing a variable
        I guess you mean that you call functions and procedures in a different way. Function always returns a value so when you call it you have to assign the value functions returns to a variable

        Code:
        var:=function();

        For procedures you do not have to assign it's value to a variable because procedures normally do not 'return' value. Procedure can return variable with OUT clause ... but I it is a topic for another story :).

        Comment

        Working...