Cpt est un entier = 0
cNomBouton est une chaine
POUR TOUT article Sur article
// incrémente le compteur
cpt ++
// clone le bouton
cNomBouton = "BT_ART_"+numeriqueVersChaine(cpt,"03d")
ChampClone("BT_ART",cNomBouton)
// Affecte sont libellé (en utilisant l'indirection)
{cNomBouton,indChamp}..Libellé = ARTICLE.LIBELLE
// rend le bouton visible
{cNomBouton,indChamp}..Visible=Vrai
// sort au 11ème
Si cpt>10 alors SORTIR
FIN
Cette contribution était de : http://old.wdforge.org/newbb/viewtopic.php?forum=14&topic_id=4455&post_id=18424