REMPLISSAGE D'UNE TABLE

Posté par Raf1 le 19/12/2005 9:05:58
Un truc de fou! Je lis un fichier "projet_participants" contenant deux matricules. Je lis le fichier "personnel" à partir de ces matricules pour remplir une table. Il me trouve bien mes deux enreg "personnel" mais il me rempli toute la table avec seulement le dernier enreg de ce fichier. Why ?
Voilà mon code :

TableSupprimeTout(Table1)
HLitRecherchePremier(PROJET_PARTICIPANTS,IDPROJET_ENTETE,IDPROJET_ENTETE)

TANTQUE HTrouve(PROJET_PARTICIPANTS)
HLitRecherchePremier(PERSONNEL,MATRICULE,PROJET_PARTICIPANTS.MATRICULE)

SI HTrouve(PERSONNEL) ALORS
Employé_e = PERSONNEL.NOMPRENOM
T_horaire = PERSONNEL.TAUX_HORAIRE
SINON
Employé_e = "???????????????"
T_horaire = 0
FIN

TableAjouteLigne(Table1,Employé_e,T_horaire)
HLitSuivant(PROJET_PARTICIPANTS)
FIN

Cette contribution était de : http://old.wdforge.org/newbb/viewtopic.php?forum=14&topic_id=3244&post_id=13714