Difference between revisions of "TAGCOUNT()"

From Lianjapedia
Jump to: navigation, search
Line 11: Line 11:
 
The TAGCOUNT() function returns the number of tags in a particular .dbx file.  With no parameters, the TAGCOUNT() function operates on the currently active .dbx file in the currently selected workarea.  A .dbx file is active if one of the tags contained within the .dbx file is the master index order.  The TAGCOUNT() function will return a zero if the file is a single (.ndx) file or if there are no indexes active.
 
The TAGCOUNT() function returns the number of tags in a particular .dbx file.  With no parameters, the TAGCOUNT() function operates on the currently active .dbx file in the currently selected workarea.  A .dbx file is active if one of the tags contained within the .dbx file is the master index order.  The TAGCOUNT() function will return a zero if the file is a single (.ndx) file or if there are no indexes active.
  
{| class="wikitable" width=100%
+
{| class="wikitable" width="100%"
!width=30%|Parameter||Description
+
!width="30%"|Parameter||Description
 
|-
 
|-
|valign=top|<.dbx filename>||The .dbx file which contains the tag.  This must be specified if the <alias> is used.
+
|valign="top"|<.dbx filename>||The .dbx file which contains the tag.  This must be specified if the <alias> is used.
 
|-
 
|-
|valign=top|<alias>||The workarea in which to operate.  Specified in any of the following ways:
+
|valign="top"|<alias>||The workarea in which to operate.  Specified in any of the following ways:
 
A workarea number.
 
A workarea number.
 
A workarea letter: A-Z (a-z) excluding M (m).
 
A workarea letter: A-Z (a-z) excluding M (m).

Revision as of 10:30, 4 February 2013

Purpose

Function to count the number of tags in the active .dbx file

Syntax

TAGCOUNT([<.dbx filename> [,<alias>]])

See Also

KEY(), MDX(), TAG(), TAGNO()

Description

The TAGCOUNT() function returns the number of tags in a particular .dbx file. With no parameters, the TAGCOUNT() function operates on the currently active .dbx file in the currently selected workarea. A .dbx file is active if one of the tags contained within the .dbx file is the master index order. The TAGCOUNT() function will return a zero if the file is a single (.ndx) file or if there are no indexes active.

Parameter Description
<.dbx filename> The .dbx file which contains the tag. This must be specified if the <alias> is used.
<alias> The workarea in which to operate. Specified in any of the following ways:

A workarea number. A workarea letter: A-Z (a-z) excluding M (m). A table alias. The alias can be specified in the USE command. If not specified, the table basename is used.

Example

use accounts
? tagcount()
          4
set order to 0
?tagcount()
         0

Products

Lianja, Lianja Server