AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de valores numéricos / Funciones financieras
  • Future value of an investment
FinFutureVal (Example)
Future value of an investment
WINDEVWEBDEV - Código ServidorReportes y ConsultasCódigo de Usuario (UMC)Ajax The following code is used to calculate the future value for an investment. The initial capital, the periodic deposit, the total number of periods and the interest rate are entered by the user in edit controls (EDT_InitCapital, EDT_Deposit, EDT_NbPeriods, EDT_Rate).
We assume that the payments must be made at the end of the period (False constant).
// --Click code on BTN_FutureVal
// Declare the variable
ResFutureVal is real
 
// Calculate the current value
ResFutureVal = FinFutureVal(-EDT_InitCapital, -EDT_Deposit, EDT_NbPeriods, EDT_Rate, False)
IF FinError() = 0 THEN
Info("The future value is: " + ResFutureVal)
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