Set Function
|
|
Changes and/or reads a system setting.
命名空间:
XSharp.RT
程序集:
XSharp.RT (在 XSharp.RT.dll 中) 版本:2.24 GA
Syntax FUNCTION Set(
nDefine,
newValue
) AS USUAL CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public static Usual Set(
Usual nDefine = default,
Usual newValue = default
) Request Example
查看代码Parameters
- nDefine (Optional)
- 类型:Usual
Is a positive integer identifying a system setting or system variable.
This should match the values from the Set enumerated type. - newValue (Optional)
- 类型: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
类型:
UsualWhen 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.
备注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