函数
请教各位【procedure】 和 【function】有什么区别 及如何使用
FUNCTION FunctionName [ LPARAMETERS parameter1 [ ,parameter2 ] , ... ] Commands [ RETURN [ eExpression ] ] [ENDFUNC]
FUNCTION FunctionName( [ parameter1 [ AS para1type ][ ,parameter2 [ AS para2type ] ],...] ) [ AS returntype ] Commands [ RETURN [ eExpression ] ] [ENDFUNC]
PROCEDURE ProcedureName [ LPARAMETERS parameter1 [ ,parameter2 ] ,... ] Commands [ RETURN [ eExpression ] ] [ENDPROC]
PROCEDURE ProcedureName( [ parameter1 [ AS para1type ][ ,parameter2 [AS para2type ] ] ,...] ) [ AS returntype ] Commands [ RETURN [ eExpression ] ] [ENDPROC]