>Hey
>I try in english after
>
>Pourquoi la comparaison n'est j'amais vrai
>Why my compare is never true oregal
>
>FOR gnCount = 1 TO 10
> lcTest = 'txtfnoproduit' + alltrim(str(gnCount))+".value"
> lcTest1 = Thisform.&lcTest
Try:
lcTest1 = EVAL("Thisform."+lcTest)
> lcTest1 = padr(alltrim(lcTest1) ,len('page.cnoproduit'))
lcTest1 = PADR(ALLTRIM(lcTest1), LEN(page.cnoproduit))
You want the length of the field, not the length of the literal
>
> do while !EOF()
> if 'page.cnoproduit' = lcTest1
> OU OR
> scan for 'page.cnoproduit' = lcTest1
scan for page.cnoproduit == lcTest1
OR
IF page.cnoproduit == lcTest1
>
>Pierre P Thanks