Functions.Set 方法 | |
Changes and/or reads a system setting.
命名空间:
XSharp.RT
程序集:
XSharp.RT (在 XSharp.RT.dll 中) 版本:2.22 GA
语法 FUNCTION Set(
nDefine,
newValue
) AS USUAL CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public static __Usual Set(
__Usual nDefine = default,
__Usual newValue = default
)
查看代码参数
- 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.
返回值
类型:
__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#.
参见