NBZON

Contents


nbzon determines the number of fields of an open table.

 

Class, Type, and Dimension

Shortint [G:abv]nbzon

 

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

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

nbzon contains the number of fields of the corresponding table. This variable is only accessible in read mode.

 

Associated Errors

Error

Description

EREADONLY (62)

EREADONLY (62)

 

Associated Keywords

NBIND - TAIREC - KEYNAME - KEYUNIQ - ADXFNAME - FILE


CONTENTS

 


Copyright © Sage 1999 - 2007