NBIND |
nbind determines the number of the keys for an open table.
Shortint [G:abv]nbind
# 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)
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.
|
Error |
Description |
|
EREADONLY (62) |
Attempt to modify the variable |
NBZON - TAIREC - KEYNAME - KEYUNIQ - CURRIND - ADXFNAME - FILE
|
|