I usually use the same approach as Hugo.
>Let's say I have a procedure that is expecting 3 parameters, but sometimes only 2. They should all be character. Is there a standard that others use that would run through some validations, checking type, pcount, stuff like that? Want to make the project I'm working on as tight and error free as possible. Here is an example:
>
>
>******************************************************************************************************
>FUNCTION Procedure_Locked
>******************************************************************************************************
>
> LPARAMETERS tcProcess, tcLockUnlock, tcUserID
>
>
If it's not broken, fix it until it is.
My Blog