Click or drag to resize

Set Function

X#
Changes and/or reads a system setting.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax
 FUNCTION Set(
	nDefine,
	newValue
) AS USUAL CLIPPER
Request Example View Source

Parameters

nDefine (Optional)
Type: Usual
Is a positive integer identifying a system setting or system variable. This should match the values from the Set enumerated type.
newValue (Optional)
Type: Usual
The optional expression can specify a new value for a system setting. The data type is dependent on the system setting designated by nDefine.

Return Value

Type: Usual
When Set() is called without the argument newValue , the function returns the current system setting designated by nDefine . If newValue is specified, the corresponding system setting is set to newValue and the value of the old setting is returned.
Remarks
If you are coming from XHarbour or Xbase++ please don't use set.ch for the value of nDefine because there are some differences between the values in this header file and the values used inside X#.
See Also