Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Odd List Stru Results?
Message
 
 
À
25/01/2002 14:25:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00610708
Message ID:
00610729
Vues:
20
This message has been marked as the solution to the initial question of the thread.
There's one bit reserved per NULL column per record. With 9 NULL columns you get 9 bits or two bytes.

>
>CREATE CURSOR temp ( ;
>  c1 C(1) NULL ,;
>  c2 C(1) NULL ,;
>  c3 C(1) NULL ,;
>  c4 c(1) NULL ,;
>  c5 C(1) NULL ,;
>  c6 C(1) NULL ,;
>  c7 c(1) NULL ,;
>  c8 c(1) NULL  ;
>)
>LIST stru
>
>
>Total record length is 10 bytes (1 for delete, 1 for NULL)
>
>
>CREATE CURSOR temp2 ( ;
>  c1 C(1) NULL ,;
>  c2 C(1) NULL ,;
>  c3 C(1) NULL ,;
>  c4 c(1) NULL ,;
>  c5 C(1) NULL ,;
>  c6 C(1) NULL ,;
>  c7 c(1) NULL ,;
>  c8 c(1) NULL ,;
>  c9 c(1) NULL ;
>)
>LIST stru	
>
>
>Added just one more column and instead of 11 bytes (9 + 1 for delete + 1 for NULL) it returns 12. Why? What is up with the extra byte?
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform