PC SOFT

AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

  • Amount of interests due
FinPeriodInterest (Example)
Amount of interests due
WINDEVWEBDEV - Server codeReports and QueriesWindows MobileUser code (UMC)Ajax The following code is used to find out the amount of interests due. The amount, the rate, the period and the duration of the loan are entered by the user in edit controls (EDT_Amount, EDT_Rate, EDT_Period, EDT_Duration).
We assume that the values entered by the user correspond to the same time unit.
// -- Click code on BTN_InterestPeriod
// Declare the variable
ResInterestPeriod is real
// Calculate the amount of interests due
ResInterestPeriod = FinPeriodInterest(EDT_Amount, EDT_Rate, EDT_Period, EDT_Duration)
IF FinError() = 0 THEN
Info("The amount of interests due is: " + ResInterestPeriod)
ELSE
// Display the error message
Error(ErrorInfo(errMessage))
END
Versión mínima requerida
  • Versión 9
Comentarios
Haga clic en [Agregar] para publicar un comentario