Click or drag to resize

OrdName Function

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

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

Parameters

uOrder (Optional)
Type: Usual
The name of the order whose name you want to obtain or a number representing its position in the order list.
Using the position is the preferred method since it is the name 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
The name of the specified order.
Remarks
Tip Tip
You can also obtain the name of an order using DBOrderInfo(DBOI_NAME, [cIndexFile], cOrder).
Examples