DbServer.CreateOrder Method (Typed) | |
Create an order within an existing index file. The behavior depends on which driver is used.
Namespace:
XSharp.VO.SDK
Assembly:
XSharp.VORDDClasses (in XSharp.VORDDClasses.dll) Version: 2.21
Syntax VIRTUAL METHOD CreateOrder(
cOrderName,
cIndexFileName,
cExpr,
cbExpr,
lUnique
) AS LOGIC CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public virtual bool CreateOrder(
Usual cOrderName = default,
Usual cIndexFileName = default,
Usual cExpr = default,
Usual cbExpr = default,
Usual lUnique = default
)
Request Example
View SourceParameters
- cOrderName (Optional)
- Type: Usual
The order name to be used. - cIndexFileName (Optional)
- Type: Usual
The name of the index file. - cExpr (Optional)
- Type: Usual
The indexing expression. - cbExpr (Optional)
- Type: Usual
The indexing expression. If a code block is provided, it should match the string expression; if a code block is not provided, one is created from the string expression. - lUnique (Optional)
- Type: Usual
Whether the index is unique. If not specified, the default is determined by SetUnique().
Return Value
Type:
Logic
TRUE if successful; otherwise, FALSE.
Remarks
Sends a NotifyIntentToMove message before the operation.
Sends a NotifyFileChange message upon completion.
This sample shows how to create a single tag order:
1
2<oDbServer>:SetOrderCondition(,,,,,,,,,,TRUE)
3IF <oDbServer>:CREATEORDER( "PlayerName", SELF:cPath + "Players", "Upper(LastName + FirstName + MiddleInit)" )
4<oDbServer>:Commit()
5ELSE
6
7ENDIF
8
9<oDbServer>:SetOrderCondition(,,,,,,,,,,FALSE)
DBCreateOrder() Function
See Also