Hi Martin,

Have a look at DUF code - cDbUpdateFunctionLibrary.pkg. It is being used all over the place.