Page 1 of 1

How to write subroutines?

Posted: Wed Apr 29, 2009 12:16 am
by karthi_gana
All,

I would like to write routenes. how to start to write routines?
i mean what is the first step to write a routine?

Posted: Wed Apr 29, 2009 12:31 am
by ray.wurlod
The first step is planning. Always.

What do you want it to achieve? What are the input arguments? What are the output arguments? What kind of routine?

Re: How to write subroutines?

Posted: Wed Apr 29, 2009 12:35 am
by Pagadrai
Hi,
You can go through the in-built routines first and understand what is the purpose of the routines and what is the Syntax.

Then you can start creating simple routines does some date or string manipulations.

Posted: Wed Apr 29, 2009 12:38 am
by ray.wurlod
No!!!

You start by producing a written specification. Always.