Click or drag to resize

OrdDestroy Function

Remove an order from an open index file.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.08
Syntax
 FUNCTION OrdDestroy(
	 uOrder AS USUAL,
	 cIndexFile AS USUAL
) AS LOGIC
View Source

Parameters

uOrder
Type: Usual
The name of the order or a number representing its position in the order list.  Using the order name is the preferred method since the position may be difficult to determine using multiple-order index files.  Invalid values are ignored.
cIndexFile
Type: Usual
The name of an index file, including an optional drive and directory (no extension should be specified).  Use this argument with <cOrder> to remove ambiguity when there are two or more orders with the same name in different index files.
If <cIndexFile> is not open by the current process, a runtime error is raised.  The default is NULL_STRING.

Return Value

Type: Boolean
Remarks
This function is identical to DBDeleteOrder(), which you can refer to for more information.
Examples