abracadabraPDF › Forums › PDF – Général › Changer le résultat d’un calcul manuellement › Répondre à : Changer le résultat d’un calcul manuellement

bonjour,
Tu commences par mettre tes 2 champs en lecture seule, ensuite tu changes éventuellement leur état en même temps que chaque calcul.
Par exemple pour le champs StressLVEDV:
…
if(partieEntierethis.getField(« StressLVEF »).value = partieEntiere;
this.getField(« StressLVEFDec »).value = Math.round(10*(calculDecimal-partieEntiere));
this.getField(« StressLVEF »).readonly = false;
this.getField(« StressLVEFDec »).readonly = false;
} else {
this.getField(« StressLVEF »).value = « »;
this.getField(« StressLVEFDec »).value = « »;
this.getField(« StressLVEF »).readonly = true;
this.getField(« StressLVEFDec »).readonly = true;
}
Attention, le fichier joint fonctionne mais n’ai certainement pas ton dernier fichier…
@+
:bonjour: