SBM ModScript Reference → Additional SBM ModScript Features → Calling Functions in a DLL from SBM ModScript → Calling Your Function
Once the library is loaded, you can call your function like any other function call on an object. The function can take as many parameters as you like because they are converted into a vector of strings when passed to the DLL function. The function also returns an integer. A typical function call might look like the following example:
var radius = 10; var area = sbmLib.compute_area_of_circle( radius ); var error_message = Variant(); var error_code = 10; sbmLib.get_error_string_for_code( error_code, error_message )
Copyright © 2007–2017 Serena Software, Inc. All rights reserved.