Comment enregistrer les lignes d'une table dans un fichier

Fermé
hafande - 19 avril 2020 à 02:41
hafande Messages postés 1 Date d'inscription dimanche 19 avril 2020 Statut Membre Dernière intervention 19 avril 2020 - 19 avril 2020 à 12:11
Bonjour,

Je voudrais savoir comment puis-je enregistrer mes lignes d'une table dans un fichier. J'ai essayé mais une seule ligne est enregistré pour remplacer un enregistrement existant


Configuration: Windows / Chrome 80.0.3987.163

1 réponse

yg_be Messages postés 22730 Date d'inscription lundi 9 juin 2008 Statut Contributeur Dernière intervention 26 avril 2024 1 477
19 avril 2020 à 09:37
bonjour, qu'as-tu essayé?
0
hafande Messages postés 1 Date d'inscription dimanche 19 avril 2020 Statut Membre Dernière intervention 19 avril 2020
19 avril 2020 à 12:11
voici on code

K est un entier
K0 est un entier
K0 = TableOccurrence(TABLE_PROJET)
POUR K = 1 A K0
TPROJET.Numprojet = TABLE_PROJET.COL_NUMPRO[K]
TPROJET.libelprojet = TABLE_PROJET.COL_LIBELLE[K]
TPROJET.typrojet = TABLE_PROJET.COL_TYPEPRO[K]
TPROJET.codprovince = TABLE_PROJET.COL_CODPROV[K]
TPROJET.coutproj = TABLE_PROJET.COL_COUT[K]
HAjoute(TPROJET)
FIN
TableSupprimeTout(TABLE_PROJET)
Info(" enregistrement reussi")
0