mercredi

Programmation sous Foxpro

Exemple de création de table DBF
Create table essai.dbf (SALESID C(6), ORDERNMBR N(7,2))

Création de la table globale INNODIV.DBF

Dele file innodiv.dbf
Create table InnoDiv.dbf ;
(A_code C(4), A_nom C(20), A_prenom C(20), A_nation C(20), A_genre C(1), A_annee N(4), A_assoc C(20), A_phone C(10), A_email C(20), ;
A_lati N(10,6), A_Long N(10,6), A_pref C(1), A_livr C(1), A_ami C(1), A_propri C(1), A_surf N(3), A_cult1 C(10), A_cult2 C(10), A_cult3 C(10), A_photo C(40), ;
D_nom C(20), D_prenom C(20), D_nation C(20), D_genre C(1), D_annee N(4), D_phone C(10), D_email C(30), A_d_vi_1 C(10), ;
A_visit1 C(20), A_d_vi_2 C(10), A_visit2 C(20), A_d_vi_3 C(10), A_visit4 C(20),;
A_mortal C(1), S_dt_rec C(10), S_dt_pep C(10), S_dt_liv C(10), S_latit N( 10, 6), S_long N( 10,6), S_pepi C(15), G_dat_Pl N(3), G_parc C(3),;
G_ligne N(2), G_arbre C(3), G_datePl N(3), G_latit N( 10, 6), G_long N( 10,6), Par_fem C(50), Par_mal C(50), Pays_or C(50), Date_Pl N(4,0), Parcelle C(3), Essai C(6), Nb_plant N(4,0),;
Nb_viva N(4,0), Nb_preS N(4,0), Nb_Sel N(4,0), Cod_smd C(10), Code_int C(25), Name_int C( 50), Popu_int C(25))

Pour transformer la table en fichier Excell:
Use Innodiv
Copy to InnoDiv.xls type XL5