ordFor()

ORDFOR()

Return the FOR expression of an Order

Syntax

      ORDFOR(<xOrder>[, <cOrderBagName>]) --> cForExp

Arguments

<xOrder> It the name of the target order, or the numeric position of the order.

<cOrderBagName> Name of the order bag.

Returns

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

Description

This function returns a character string that is the expression for the FOR condition for the specified order. The order may be specified if <xOrder> is the name of the order.However, <xOrder> may be an numeric which represent the position in the order list of the desired Order.

Examples

      USE tests NEW VIA "DBFCDX"
      INDEX ON tests->ID ;
         TO tests          ;
         FOR tests->ID > 100

      ORDFOR( "tests" )      // Returns: tests->ID > 100

Tests

      See examples

Compliance

This function is CA-Cl*pper compliant with one exception: If the <xOrder> parameter is not specified or <xOrder> is 0, the current active order is used.

Platforms

All

Files

Library is rdd

Seealso

ORDKEY(), ORDCREATE(), ORDNAME(), ORDNUMBER()

Advertisements

3 responses to “ordFor()

  1. Pingback: Harbour All Functions – O | Viva Clipper !

  2. Pingback: Harbour Index / Order System Functions | Viva Clipper !

  3. Pingback: Harbour RG Summary | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s