Functions.VoDbCreate 方法 (String, __Array, _RddList, Boolean, String, String, Boolean, Boolean) | |
Create new file through the specified RDDs
命名空间:
XSharp.RT
程序集:
XSharp.RT (在 XSharp.RT.dll 中) 版本:2.22 GA
语法 FUNCTION VoDbCreate(
cName AS STRING,
aStruct AS ARRAY,
aList AS _RddList,
lNew AS LOGIC,
cAlias AS STRING,
cDelim AS STRING,
lKeep AS LOGIC,
lJustOpen AS LOGIC
) AS LOGIC
public static bool VoDbCreate(
string cName,
__Array aStruct,
_RddList aList,
bool lNew,
string cAlias,
string cDelim,
bool lKeep,
bool lJustOpen
)
查看代码参数
- cName
- 类型:String
Name of the file to create. When no extension is specified then the default extension for the RDD will be used. - aStruct
- 类型:__Array
Array with structure to use when creating the file. - aList
- 类型:_RddList
structure that describes the list of RDDs to use - lNew
- 类型:Boolean
TRUE opens the database file in a new work area (first available). FALSE opens it in the current work area. lNew is useful only when lOpen has a value of TRUE. The default is FALSE. - cAlias
- 类型:String
The alias to be associated with the work area where the file is opened. Within a single thread, X# will not accept duplicate aliases. cAlias is useful only when lOpen has a value of TRUE. The default alias is the filename without extension - cDelim
- 类型:String
The delimiter for fields within a delimited database file. The default is a NULL string - lKeep
- 类型:Boolean
TRUE specifies that the file should remain open after creating. FALSE closes the file. - lJustOpen
- 类型:Boolean
TRUE specifies that an existing database file be opened. FALSE specifies that that a new database file be opened. The default is FALSE. This can be used to open existing SDF and delimited files, which do not have a structure in the header ? in which case, an empty aStruct should be used.
返回值
类型:
BooleanTRUE when succesfull, otherwise FALSE. When an error has occurred then you can retrieve that error from RuntimeState.LastRddError.
备注 提示: |
---|
The difference between VoDbCreate and CoreDb.Create is that VoDbCreate takes a ARRAY parameter |
参见