AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de valores numéricos / Funciones financieras
  • Amount of interests due
FinPeriodInterest (Example)
Amount of interests due
WINDEVCódigo de Usuario (UMC) 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
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/05/2022

Señalar un error o enviar una sugerencia | Ayuda local