PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Evaluating the interest rate of a loan
FinInterestRate (Example)
Evaluating the interest rate of a loan
WINDEVUser code (UMC) The following code is used to calculate the interest rate of a loan. The number of payments required to pay off the capital, the payment value and the amount of the loan are entered by the user in edit controls (EDT_NbPayments, EDT_PaymentValue, EDT_Amount).
// -- Code de clic sur BTN_TauxIntérêt
// Déclaration de la variable
ResTauxIntérêt est un réel
// Calcul du taux d'intérêt
ResTauxIntérêt = FinTauxIntérêt(SAI_NbVersement, -SAI_ValeurRemb, SAI_Montant)
SI FinErreur() = 0 ALORS
Info("Le taux d'intérêt est: " + ResTauxIntérêt)
SINON
// Affichage du message d'erreur
Erreur(ErreurInfo(errMessage))
FIN
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment