Click or drag to resize

Set Function

Changes and/or reads a system setting.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.0
Syntax
 FUNCTION Set(
	 nDefine AS USUAL,
	 newValue AS USUAL
) AS USUAL

Parameters

nDefine
Type: USUAL
Is a positive integer identifying a system setting or system variable. This should match the values from the Set enumerated type.
newValue
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