lQty:= lCdu_ADO.ReadField_TEXT(pADORecSet,'ValeurParametre'); lcontractRec.SETRANGE(lcontractRec.NAboPere,lTxt_Temp); IF lcontractRec.FINDFIRST THEN BEGIN lCustomerRec.SETRANGE(lCustomerRec."No.",lcontractRec."Customer No."); IF lCustomerRec.FINDFIRST = TRUE THEN BEGIN EVALUATE(lCustomerRec."Taux Récurrent",CONVERTSTR(lQty,'()',' ')); lCustomerRec.VALIDATE(lCustomerRec."Taux Récurrent",lQty); lCustomerRec.MODIFY; END;//FIN IF CUSTOMER END;
Comments
sry I dont read your code but the text to decimal problem you can solve like this:
txt = text
dec = decimal
The sales line table is only one possibility! important is the field on which you filter! it must be an decimal field.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
RIS Plus, LLC
If lQty is text (you are using CONVERTSTR to it), why you are trying to VALIDATE the string into the decimal field? If it is decimal, why you are using EVALUATE and CONVERTSTR on it? You need to rething your code, make it clear for yourself. It seems that you have get lost in your own code (if it is your code)... :whistle:
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.