Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Saxon.SetParameter

Sets a parameter.

Component Version macOS Windows Linux Server iOS SDK
Saxon 15.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ❌ No
MBS( "Saxon.SetParameter"; Name { ; Value; Type } )   More

Parameters

Parameter Description Example Flags
Name The name of the parameter. "test"
Value The value for the parameter. Optional
Type The type of value.
This defines how we pass the value later to Saxon library.
Can be XML, JSON, Integer or Text.
Default is text.
"Text" Optional

Result

Returns OK or error.

Description

Sets a parameter.
If you set parameters, please put a Saxon.Clear function call on the beginning of the script to clear any values set by other scripts.

Examples

Try parameter setting:

Let([
r = MBS("Saxon.SetParameter"; "Hello"; "World");
list1 = MBS("Saxon.ParameterNames");
v = MBS("Saxon.GetParameter"; "Hello");
h = MBS("Saxon.HasParameter"; "Hello")

]; "Keys: " & list1 & ¶ & "Value: " & v & ¶ & "Exists: " & h)

Example result:
Keys: Hello

Value: World
Exists: 1

See also

Example Databases

Created 9th January 2025, last changed 9th January 2025


Saxon.SetLicense - Saxon.SetProperty