AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de valores numéricos / Funciones financieras
  • Number of payments required to pay off a capital
FinPaymentNb (Example)
Number of payments required to pay off a capital
WEBDEV - Código ServidorAjax The following code is used to find out the number of payments required to pay off a capital. The payment value, the rate and the amount of the loan are entered by the user in edit controls (EDT_PaymentValue, EDT_Rate, EDT_Amount).
// -- Click code on BTN_NbPayment
// Declare the variable
ResNbPayment is real
// Calculate the number of payments
ResNbPayment = FinPaymentNb(-EDT_PaymentValue, EDT_Rate, EDT_Amount)
IF FinError() = 0 THEN
Info(ResNbPayment + " payments are required")
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