ORDFOR()

Return the FOR expression of an Order

Syntax

ORDFOR(<cOrderName> | <nOrder>[, <cOrderBagName>]) --> cForExp

Arguments

<cOrderName> is the name of the target Order, whose cForExp is sought.

<nOrder> is an integer that identifies the position in the Order List of the target Order whose cForExp is sought.

<cOrderBagName> is the name of an Order Bag containing one or more Orders. You may specify <cOrderBagName> as the filename with or without the pathname or appropriate extension. If you do not include the extension as part of <cOrderBagName> HARBOUR uses the default extension of the current RDD.

Returns

ORDFOR() returns a expression containing the FOR condition for an order

Description

ORDFOR() is an Order management function that returns the character string, cForExp, that represents the logical FOR condition of the Order, <cOrderName> or <nOrder>.
Examples
      USE Tests NEW
      INDEX ON  Tests->Id ;
         TO  TESTS          ;
         FOR Tests->Id > 100

      ORDFOR( "Tests" )      // Returns: Tests->Id > 100
Tests
      See examples
Status

Started

Compliance

This function is Ca-Clipper compliant

Platforms

All

Files

Library is rdd

See Also