AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de valores numéricos / Funciones financieras
  • Current value of an investment
FinCurrentVal (Example)
Current value of an investment
Reportes y Consultas The following code is used to calculate the current value of an investment. The payment value, the future value, the number of periods and the interest rate are entered by the user in edit controls (EDT_PaymentValue, EDT_FutureValue, EDT_NbPeriod, EDT_Rate).
We assume that the payments must be made at the end of the period (False constant).
// -- Click code on BTN_CurrentValue
// Declare the variable
ResCurrentValue is real
// Calculate the current value
ResCurrentValue = FinCurrentVal(-EDT_PaymentValue, EDT_FutureValue, EDT_NbPeriod, EDT_Rate, False)
IF FinError() = 0 THEN
Info("The current value is: " + ResCurrentValue)
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