Click or drag to resize

OrdNumber Function

X#
Return the position of an order in the order list of a work area.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.21
Syntax
 FUNCTION OrdNumber(
	uOrder,
	cIndexFile
) AS USUAL CLIPPER
Request Example View Source

Parameters

uOrder (Optional)
Type: Usual
The name of the order whose position you want to obtain or a number representing its position in the order list.
Using the order name is the preferred method since it is the position you want to obtain. Invalid values are ignored.
cIndexFile (Optional)
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.

Return Value

Type: Usual
A numeric value that is equal to the position of the specified order in the order list.
Remarks
Tip Tip
You can also obtain the position of an order using DBOrderInfo(DBOI_NUMBER, [cIndexFile], cOrder).
Examples