OrderSpec.OrderDelete Method | |
Deletes orders from a multi-order file or a physical index file of a single-order file. NULLs out OrderSpec object information in the OrderSpec object and the DBFileSpec object specific to this order.
Namespace:
VO
Assembly:
VORDDClasses (in VORDDClasses.dll) Version: 2.21
Syntax VIRTUAL METHOD OrderDelete(
uOrder
) AS USUAL CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public virtual Usual OrderDelete(
Usual uOrder = default
)
Request Example
View SourceParameters
- uOrder (Optional)
- Type: Usual
The numeric position or order name of the order to be deleted. Use order names unless the actual order position is known. The default is the first order of the index file.
Return Value
Type:
Usual
TRUE if successful; otherwise, FALSE.
Examples 1RDDSetDefault("DBFNTX")
2oDB := DBFileSpec{"C:\TEST\CUSTOMER.DBF"}
3oOrd1 := OrderSpec{oDB}
4oOrd2 := OrderSpec{oDB}
5oOrd3 := OrderSpec{oDB}
6oOrd1:OrderAdd("C:\TEST\CUST1.NTX")
7oOrd2:OrderAdd("C:\TEST\CUST2.NTX")
8oOrd3:OrderAdd("C:\TEST\CUST3.NTX")
9oOrd1:OrderDelete( )
10oOrd2:OrderDelete( )
11oOrd3:OrderDelete( )
See Also