AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de valores numéricos / Funciones financieras
  • Amount of each payment for an investment
FinRepayVal (Example)
Amount of each payment for an investment
WINDEVWEBDEV - Código ServidorReportes y ConsultasCódigo de Usuario (UMC)Ajax The following code is used to calculate the amount of each payment for an investment. The initial capital, the total number of periods and the interest rate are entered by the user in edit controls (EDT_InitCapital, EDT_NbPeriods, EDT_Rate).
// --Click code on BTN_RepaymentVal
// Declare the variable
ResRepaymentVal is real
 
// Calculate the current value
ResRepaymentVal = FinRepayVal(-EDT_InitCapital, EDT_NbPeriods, EDT_Rate)
IF FinError() = 0 THEN
Info("The amount of each payment is: " + ResRepaymentVal)
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