This is the style I tend to use as well.. It's good knowing that once
you scroll down past any initial validation code, your variables are
assumed to be just fine, and I do like the logical division of having
the validation section and then the heart of the logic section as
outlined by Mike.
-Steve
FUNCTION MyFunction(tcSomething AS String) AS String
LOCAL lcRetVal
lcRetVal = []
IF PCOUNT() = 0 OR VARTYPE(tcSomething) # "C"
RETURN lcRetVal
ENDIF
*Now the real meat of the function is not tabbed way over for nothing.
RETURN lcRetVal
ENDFUNC
Mike
[excessive quoting removed by server]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.