SLPsetuserfuncaddress
PurposeSet the address of an external user functionSynopsisprocedure SLPsetuserfuncaddress(FuncIndex:integer, Address:integer|string)
Arguments
FuncIndex The index of the user function (as obtained by SLPgetindex) Address The address of the function, given as an integer or (in character form) as a string. The integer form cannot be used in a 64-bit environment.ExampleThe following code fragment sets the address of the user function ExtFunc to ExtAddress. Assuming that Mosel has been called from Visual Basic and that the address of the Visual Basic function has been passed to Mosel in ExtAddress, any calls from Mosel to the user function ExtFunc will be to the Visual Basic function.SLPDATA("UF","ExtFunc","","DOUBLE,INTEGER","VB","","") FuncNum := SLPgetindex("ExtFunc",xslp_funcnamesnocase) SLPsetuserfuncaddress(FuncNum,ExtAddress)Further informationThe integer form of the address is provided for compatibility with earlier versions. The string form is always to be preferred.Related topics
If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.