TAIREC |
Tairec contains the size in number of bytes of each record in an open table.
Integer [G:abv]tairec
Integer [S]tairec(51)
# Display the characteristics of the table BPCUSTOMER
File BPCUSTOMER [BPC]
Infbox "There are "-num$([G:CLI]nbzon)-" fields in the CUSTOMER Field :"
For I = 0 To [G:BPC]nbzon - 1
Infbox [G:BPC]adxfname(I)
Next I
Infbox "There is "-num$([G:BPC]nbind)-"index in the CUSTOMER 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 " (Numerous homonyms) "
Endcase
Infbox "Length = "-num$([G:BPC]keylen(I))
Next I
Infbox "Total record size = "-num$([G:BPC]tairec)
[G:abv]tairec is a variable in class [G] associated with a table declared by File order. It contains the size (expressed in bytes) of each record in this table.
[S]tairec is a grid of Adonix system variables, initialised, for each open table, with the corresponding [G:abv]tairec variable. Note that index 0 in the grid is not used.
These variables are accessible in read mode only.
The order in which the tables are taken unto account in the variable [S]tairec is not significant.
|
Error |
Description |
|
EREADONLY (62) |
An attempt has been made to modify the variable. |
NBIND - NBZON - KEYNAME - KEYUNIQ - KEYLEN - ADXFNAME - FILE
|
|