点击或拖拽改变大小

X# Runtime and SDK Reference

X#
这是生成的 XSharp Runtime 和 VO SDK 文档。
请注意,DotNet 没有函数的概念。因此,编译器会将函数转换为编译器生成的函数类的静态方法。
DEFINES 也是如此。这些字段作为常量字段添加到函数类中。
XSharp 运行时有几个这样的类:

以及更多。 编写代码时无需做任何特殊处理。编译器会自动解析函数调用,如: Left(cString,10) 将生成以下输出 XSharp.Core.Functions.Left(cString,10). 编译器也会翻译诸如 FA_NORMAL XSharp.Core.Functions.FA_NORMAL.
事实上,编译器会在生成的代码中包含该 DEFINE 的值。 在生成的代码中,您将无法看到0x00000080的值是从FA_NORMAL定义中读取的。
XSharp 运行时的源代码可在 GitHub 获取 。
如果您发现此代码存在错误,请发送电子邮件至 bugreports@xsharp.eu 进行报告。
或者更好的办法是,找到错误并向我们发送错误修复程序。
最好的办法是 :
  • 创建 Github 仓库的 Fork
  • 在相应的单元测试项目中创建单元测试
  • 修复问题
  • 向我们发送单元测试和错误修复的 pull 请求
Of course you can also discuss issues you have or send us your comments on the forum on our website
最后,如果您喜欢所看到的内容,可以通过订阅 “Friends Of XSharp”(FOX)计划来支持 X# 的开发。
有关该计划的更多信息,请访问我们的网站。
Namespaces
NamespaceDescription
Advantage
This namespace contains the exposed RDDs for Advantage.
System.Linq
This namespace contains extension methods (Sum(), Min(), Max()) for the XSharp Numeric datatypes Float and Currency
VO
This namespace contains all the VO SDK Classes, such as DbServer, DataWindow, SQLSelect etc.
If you enable the compiler option to search inside "Implicit Namespaces" (/ins) then you will not have to include a USING VO statement in your code.
The compiler will then automatically find the classes.
The Runtime will also respect these implicit namespaces, so CreateInstance(#DbServer) will also be able to find the DbServer class inside the VO namespace.
VOGUIClasses
This namespace contains the functions class with the functions and defines from the VOGUIClasses assembly
VOInternetClasses
This namespace contains the functions class with the functions and defines from the VOInternetClasses assembly
VORDDClasses
This namespace contains the functions class with the functions and defines from the VORDDClasses assembly
VOReportClasses
This namespace contains the functions class with the functions and defines from the VOReportClasses assembly
VOSQLClasses
This namespace contains the functions class with the functions and defines from the VOSQLClasses assembly
VOSystemClasses
This namespace contains the functions class with the functions and defines from the VOSystemClasses assembly
XSharp
This namespace contains the classes and structures that are used to implement the XBase types, such as USUAL, SYMBOL DATE and FLOAT.
XSharp.ADS
This namespace contains several types used by the Advantage RDDs in the RDD system.
XSharp.Core
This namespace contains the Functions class that implements the Runtime functions available in XSharp.Core DLL.
XSharp.Data
This namespace contains several types used in the XSharp runtime to access data through the Ado.Net Data providers.
XSharp.Debugger
This namespace containes several windows that can be used to inspect the Runtime State and open workareas/cursors at runtime.
XSharp.Harbour
This namespace contains the Functions class that implements the Runtime functions available in XSharp.Harbour.DLL.
XSharp.Internal
This namespace contains types (classes and attributes) used by the compiler. These are normally not used in End users (your) code.
XSharp.IO
This namespace contains types used in the (low level) File IO.
XSharp.Parsers
This namespace contains the some classes that are used to parse embedded SQL statements.
XSharp.RDD
This namespace contains types used by the RDD system.
XSharp.RDD.Enums
This namespace contains enumerated types used by the RDD system.
XSharp.RDD.Support
This namespace contains several helper types used by the RDD system.
XSharp.RT
This namespace contains the Functions class that implements the Runtime functions available in XSharp.RT.DLL.
XSharp.RT.Debugger
This namespace contains the Functions class that has the functions to show the Runtime Debugger windows.
XSharp.VFP
This namespace contains the Functions class that implements the Runtime functions available in XSharp.VFP DLL.
XSharp.VFP.UI
This namespace contains the compatibility classes that are used in code generated by the VFPExporter tool.
XSharp.VFP.UI.Properties
XSharp.VO
This namespace contains the Functions class that implements the Runtime functions available in XSharp.VO.DLL.
XSharp.VO.SDK
This namespace contains strongly typed versions of the VO SDK Classes, such as DbServer, DataWindow, SQLSelect etc.
If you enable the compiler option to search inside "Implicit Namespaces" (/ins) then you will not have to include a USING XSharp.VO statement in your code.
The compiler will then automatically find the classes in this namespace.
The Runtime will also respect these implicit namespaces, so CreateInstance(#DbServer) will also be able to find the DbServer class inside the XSharp.VO namespace.
XSharp.XPP
This namespace contains the Functions class that implements the Runtime functions available in XSharp.XPP.DLL.
XSharp_VOGUIClasses
This namespace contains the functions class with the functions and defines from the XSharp.VOGUIClasses assembly
XSharp_VORDDClasses
This namespace contains the functions class with the functions and defines from the XSharp.VORDDClasses assembly
XSharp_VOSQLClasses
This namespace contains the functions class with the functions and defines from the XSharp.VOSQLClasses assembly
XSharp_VOSystemClasses
This namespace contains the functions class with the functions and defines from the XSharp.VOSystemClasses assembly