Developer Documentation Library > Data Model > Extending the UNICOM Intelligence Data Model > Adding function libraries > Custom function example
 
Custom function example
To create a custom function
1 Create an ActiveX DLL, for example:
Public Function Sq(ByVal Num as Long) as Long
Sq = Num * Num
End Function
2 Register this DLL under:
HKEY_LOCAL_MACHINE\Software\SPSS\MR Function Library
See also
Function library registration
Functions with hidden parameters
Functions with optional or variable parameters
Name resolution and function precedence
Adding function libraries