You can pass parameters by reference (VAR) and change the value of the parameter in the function. But depending on what you want to do it is often times considered as a bad programing style to return more than one value. Have, for example, a look ad the DATE2DMY function from NAV, which you have to call three times to get all three return values.
Comments
http://www.sist.biz/en/ [en] | http://www.sist.biz [de]
At the begin of the function it is a good idea to reset the variables to their default values:
You can now call this function from another place:
http://www.sist.biz/en/ [en] | http://www.sist.biz [de]