NBIND

Contents


nbind determines the number of the keys for an open table.

 

Class, Type, and Dimension

Shortint [G:abv]nbind

 

Examples

   # Display of the characteristics of the BPCUSTOMER table
    File BPCUSTOMER [BPC]
    Infbox "Il y a "-num$([G:CLI]nbzon)-"fields in the CLIENT table: "
    For I = 0 To [G:BPC]nbzon - 1
       Infbox [G:BPC]adxfname(I)
    Next I
    Infbox "Il y a "-num$([G:BPC]
nbind)-"index in the CLIENT table: "
    For I = 0 To [G:BPC]
nbind - 1
       Infbox [G:BPC]keyname(I)
       Case [G:BPC]keyuniq(I)
           When 0: Infbox "   (With Homonyms)  "
           When 1: Infbox "   (Without Homonyms)  "
           When 2: Infbox "   (Multiple Homonyms)  "
       Endcase
       Infbox "Length = "-num$([G:BPC]keylen(I))
   Next I
   Infbox "Total Record Size = "-num$([G:BPC]tairec)

 

Description and Comments

nbind is a variable of the [G] class associated with a table declared by a File command.

nbind contains the number of keys of the corresponding table. This variable is only accessible in read mode.

 

Associated Errors

Error

Description

EREADONLY (62)

Attempt to modify the variable

 

Associated Keywords

NBZON - TAIREC - KEYNAME - KEYUNIQ - CURRIND - ADXFNAME - FILE


CONTENTS


Copyright © Sage 1999 - 2007